- 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:
parent
8fbd1290f6
commit
db7ab2f447
|
@ -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);
|
||||
|
|
|
@ -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 @*/;
|
||||
/*
|
||||
|
|
Loading…
Reference in New Issue