diff options
author | serg@serg.mylan <> | 2005-03-23 21:08:13 +0100 |
---|---|---|
committer | serg@serg.mylan <> | 2005-03-23 21:08:13 +0100 |
commit | 106ac5b0f6bb7d1dc0f32a4a1d273e6496b128ae (patch) | |
tree | 9defb6fc4bb5a6c4a12f100e1c2644a098e81253 /zlib/gzio.c | |
parent | f21f8f983f9bf33b9d18288f501483b6f347086d (diff) | |
download | mariadb-git-106ac5b0f6bb7d1dc0f32a4a1d273e6496b128ae.tar.gz |
upgrade zlib to 1.2.2
Diffstat (limited to 'zlib/gzio.c')
-rw-r--r-- | zlib/gzio.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/zlib/gzio.c b/zlib/gzio.c index 4afd102b3f3..5e71b0ab3ae 100644 --- a/zlib/gzio.c +++ b/zlib/gzio.c @@ -455,6 +455,10 @@ int ZEXPORT gzread (file, buf, len) s->z_err = Z_ERRNO; break; } + if (feof(s->file)) { /* avoid error for empty file */ + s->z_err = Z_STREAM_END; + break; + } } s->stream.next_in = s->inbuf; } |