diff options
Diffstat (limited to 'thirdparty/zlib/gzread.c')
-rw-r--r-- | thirdparty/zlib/gzread.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/thirdparty/zlib/gzread.c b/thirdparty/zlib/gzread.c index 548201a..3a6ba9f 100644 --- a/thirdparty/zlib/gzread.c +++ b/thirdparty/zlib/gzread.c @@ -245,8 +245,14 @@ local int gz_decomp(state) if (strm->avail_in == 0 && gz_avail(state) == -1) return -1; if (strm->avail_in == 0) { +#if 0 gz_error(state, Z_DATA_ERROR, "unexpected end of file"); return -1; +#else + /* APITRACE: Ignore unexpected end of file. */ + ret = 0; + break; +#endif } /* decompress and handle errors */ |