summaryrefslogtreecommitdiff
path: root/test/example.c
diff options
context:
space:
mode:
authorHans Kristian Rosbach <hk-git@circlestorm.org>2015-05-22 22:04:25 +0200
committerHans Kristian Rosbach <hk-git@circlestorm.org>2015-05-22 22:04:25 +0200
commit10a800267df8bddcdf36758f6e8ec6f7020da59d (patch)
tree3f8f2c361a1b6ea9a140118cb8f40dada3ae58b0 /test/example.c
parent44909f08878105c831c7273eee3456550e10a07f (diff)
Actually set err before checking it
Diffstat (limited to 'test/example.c')
-rw-r--r--test/example.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/example.c b/test/example.c
index a9b730e..4d232cf 100644
--- a/test/example.c
+++ b/test/example.c
@@ -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 */