mirror of
https://github.com/facebook/zstd.git
synced 2025-10-07 00:12:40 -04:00
gzip : only display inflateEnd error when there is no error before
This commit is contained in:
parent
6c35112d08
commit
c9f21c8a71
@ -1483,7 +1483,8 @@ static unsigned long long FIO_decompressGzFrame(dRess_t* ress,
|
||||
|
||||
if (strm.avail_in > 0) memmove(ress->srcBuffer, strm.next_in, strm.avail_in);
|
||||
ress->srcBufferLoaded = strm.avail_in;
|
||||
if (inflateEnd(&strm) != Z_OK) {
|
||||
if ( (inflateEnd(&strm) != Z_OK) /* release resources ; error detected */
|
||||
&& (decodingError==0) ) {
|
||||
DISPLAYLEVEL(1, "zstd: %s: inflateEnd error \n", srcFileName);
|
||||
decodingError = 1;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user