mirror of https://github.com/madler/zlib
Fix bug in test/example.c where error code not saved.
This commit is contained in:
parent
9cbda797c1
commit
283520baf7
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue