From 106ac5b0f6bb7d1dc0f32a4a1d273e6496b128ae Mon Sep 17 00:00:00 2001 From: "serg@serg.mylan" <> Date: Wed, 23 Mar 2005 21:08:13 +0100 Subject: upgrade zlib to 1.2.2 --- zlib/gzio.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'zlib/gzio.c') 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; } -- cgit v1.2.1