From db7ab2f447ee6097b2e98a526f6383a5ca388718 Mon Sep 17 00:00:00 2001 From: jbj Date: Thu, 8 May 2003 15:52:36 +0000 Subject: [PATCH] - don't use error string after gzclose (Dmitry V. Levin). CVS patchset: 6825 CVS date: 2003/05/08 15:52:36 --- rpmio/rpmio.c | 4 +--- zlib/zlib.h | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/rpmio/rpmio.c b/rpmio/rpmio.c index c0595f834..8d80138a8 100644 --- a/rpmio/rpmio.c +++ b/rpmio/rpmio.c @@ -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); diff --git a/zlib/zlib.h b/zlib/zlib.h index b7aa24452..a4591059f 100644 --- a/zlib/zlib.h +++ b/zlib/zlib.h @@ -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 @*/; /*