zlib 1.2.3.7

This commit is contained in:
Mark Adler
2011-09-09 23:27:08 -07:00
parent dc5a43ebfa
commit 7df877eccd
28 changed files with 745 additions and 553 deletions

View File

@@ -17,7 +17,7 @@ int ZEXPORT gzclose(file)
gz_statep state;
if (file == NULL)
return EOF;
return Z_STREAM_ERROR;
state = (gz_statep)file;
return state->mode == GZ_READ ? gzclose_r(file) : gzclose_w(file);