- don't use error string after gzclose (Dmitry V. Levin).

CVS patchset: 6825
CVS date: 2003/05/08 15:52:36
This commit is contained in:
jbj 2003-05-08 15:52:36 +00:00
parent 8fbd1290f6
commit db7ab2f447
2 changed files with 2 additions and 4 deletions

View File

@ -2373,9 +2373,7 @@ static int gzdClose( /*@only@*/ void * cookie)
DBGIO(fd, (stderr, "==>\tgzdClose(%p) zerror %d %s\n", cookie, rc, fdbg(fd)));
/*@=modfilesys@*/
if (rc < 0) {
/*@-usereleased@*/
fd->errcookie = gzerror(gzfile, &rc);
/*@=usereleased@*/
fd->errcookie = "gzclose error";
if (rc == Z_ERRNO) {
fd->syserrno = errno;
fd->errcookie = strerror(fd->syserrno);

View File

@ -969,7 +969,7 @@ ZEXTERN int ZEXPORT gzeof OF((gzFile file))
input stream, otherwise zero.
*/
ZEXTERN int ZEXPORT gzclose OF((gzFile file))
ZEXTERN int ZEXPORT gzclose OF((/*@only@*/ gzFile file))
/*@globals fileSystem @*/
/*@modifies file, fileSystem @*/;
/*