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 |
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) 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 */ |