]> git.ipfire.org Git - thirdparty/zlib-ng.git/commitdiff
Actually set err before checking it
authorHans Kristian Rosbach <hk-git@circlestorm.org>
Fri, 22 May 2015 20:04:25 +0000 (22:04 +0200)
committerHans Kristian Rosbach <hk-git@circlestorm.org>
Fri, 22 May 2015 20:04:25 +0000 (22:04 +0200)
test/example.c

index a9b730ea5f275bbca3a09780e26722cefe5bb0e3..4d232cf55497cec8304e130bcf960644083e0fac 100644 (file)
@@ -382,7 +382,7 @@ void test_sync(unsigned char *compr, uLong comprLen, unsigned char *uncompr, uLo
     d_stream.next_out = uncompr;
     d_stream.avail_out = (uInt)uncomprLen;
 
-    inflate(&d_stream, Z_NO_FLUSH);
+    err = inflate(&d_stream, Z_NO_FLUSH);
     CHECK_ERR(err, "inflate");
 
     d_stream.avail_in = (uInt)comprLen-2;   /* read all compressed data */