Fix gzclose() to return the actual error last encountered.

This commit is contained in:
Mark Adler
2011-09-30 22:19:12 -07:00
parent acfc85772a
commit 8768ba98af
2 changed files with 9 additions and 6 deletions

2
zlib.h
View File

@@ -1446,7 +1446,7 @@ ZEXTERN int ZEXPORT gzclose OF((gzFile file));
must not be called more than once on the same allocation.
gzclose will return Z_STREAM_ERROR if file is not valid, Z_ERRNO on a
file operation error, or Z_OK on success.
file operation error, Z_MEM_ERROR if out of memory, or Z_OK on success.
*/
ZEXTERN int ZEXPORT gzclose_r OF((gzFile file));