diff options
author | Mark Adler <madler@alumni.caltech.edu> | 2014-07-02 16:34:22 -0700 |
---|---|---|
committer | Mark Adler <madler@alumni.caltech.edu> | 2014-07-02 16:34:22 -0700 |
commit | 283520baf786b81cfd97fe56909b7e8f2529eb22 (patch) | |
tree | d2dccd09dc666194b5e0592b903aee4e253706bc /test | |
parent | 9cbda797c10b16d7a369761ed6d5a68f26296ce6 (diff) | |
download | zlib-283520baf786b81cfd97fe56909b7e8f2529eb22.tar.gz zlib-283520baf786b81cfd97fe56909b7e8f2529eb22.tar.bz2 zlib-283520baf786b81cfd97fe56909b7e8f2529eb22.zip |
Fix bug in test/example.c where error code not saved.
Diffstat (limited to 'test')
-rw-r--r-- | test/example.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/example.c b/test/example.c index 138a699..e05bc2e 100644 --- a/test/example.c +++ b/test/example.c | |||
@@ -432,7 +432,7 @@ void test_sync(compr, comprLen, uncompr, uncomprLen) | |||
432 | d_stream.next_out = uncompr; | 432 | d_stream.next_out = uncompr; |
433 | d_stream.avail_out = (uInt)uncomprLen; | 433 | d_stream.avail_out = (uInt)uncomprLen; |
434 | 434 | ||
435 | inflate(&d_stream, Z_NO_FLUSH); | 435 | err = inflate(&d_stream, Z_NO_FLUSH); |
436 | CHECK_ERR(err, "inflate"); | 436 | CHECK_ERR(err, "inflate"); |
437 | 437 | ||
438 | d_stream.avail_in = (uInt)comprLen-2; /* read all compressed data */ | 438 | d_stream.avail_in = (uInt)comprLen-2; /* read all compressed data */ |