diff options
author | Mark Adler <madler@alumni.caltech.edu> | 2011-09-30 22:19:12 -0700 |
---|---|---|
committer | Mark Adler <madler@alumni.caltech.edu> | 2011-09-30 22:19:12 -0700 |
commit | 8768ba98af1cf44e9a24fa7dbdf013de4afecf62 (patch) | |
tree | 9391179a68d627b86802b5ef4d6a2d7d4c029204 /zlib.h | |
parent | acfc85772a811f4c0efec835a3087b53f83f6079 (diff) | |
download | zlib-8768ba98af1cf44e9a24fa7dbdf013de4afecf62.tar.gz zlib-8768ba98af1cf44e9a24fa7dbdf013de4afecf62.tar.bz2 zlib-8768ba98af1cf44e9a24fa7dbdf013de4afecf62.zip |
Fix gzclose() to return the actual error last encountered.
Diffstat (limited to 'zlib.h')
-rw-r--r-- | zlib.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1446,7 +1446,7 @@ ZEXTERN int ZEXPORT gzclose OF((gzFile file)); | |||
1446 | must not be called more than once on the same allocation. | 1446 | must not be called more than once on the same allocation. |
1447 | 1447 | ||
1448 | gzclose will return Z_STREAM_ERROR if file is not valid, Z_ERRNO on a | 1448 | gzclose will return Z_STREAM_ERROR if file is not valid, Z_ERRNO on a |
1449 | file operation error, or Z_OK on success. | 1449 | file operation error, Z_MEM_ERROR if out of memory, or Z_OK on success. |
1450 | */ | 1450 | */ |
1451 | 1451 | ||
1452 | ZEXTERN int ZEXPORT gzclose_r OF((gzFile file)); | 1452 | ZEXTERN int ZEXPORT gzclose_r OF((gzFile file)); |