changeset 1105:62ccecea1317

Fix ZLIB decompressor mode.
author Matti Hamalainen <ccr@tnsp.org>
date Wed, 04 Mar 2015 00:00:11 +0200
parents 8a4df37ffe13
children f8e9f6b2a41a
files tests/testdmzlib.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/tests/testdmzlib.c	Tue Mar 03 23:56:12 2015 +0200
+++ b/tests/testdmzlib.c	Wed Mar 04 00:00:11 2015 +0200
@@ -213,7 +213,7 @@
         else
             zret = inflate(&zstr, Z_FULL_FLUSH);
 
-        if (zret == Z_OK && zstr.total_out > 0)
+        if (zstr.total_out > 0)
         {
             *outSize += zstr.total_out;
             if (fwrite(outBuffer, sizeof(Uint8), zstr.total_out, outFile) != zstr.total_out)