Fix bug in test/example.c where error code not saved.
This commit is contained in:
@@ -432,7 +432,7 @@ void test_sync(compr, comprLen, uncompr, uncomprLen)
|
|||||||
d_stream.next_out = uncompr;
|
d_stream.next_out = uncompr;
|
||||||
d_stream.avail_out = (uInt)uncomprLen;
|
d_stream.avail_out = (uInt)uncomprLen;
|
||||||
|
|
||||||
inflate(&d_stream, Z_NO_FLUSH);
|
err = inflate(&d_stream, Z_NO_FLUSH);
|
||||||
CHECK_ERR(err, "inflate");
|
CHECK_ERR(err, "inflate");
|
||||||
|
|
||||||
d_stream.avail_in = (uInt)comprLen-2; /* read all compressed data */
|
d_stream.avail_in = (uInt)comprLen-2; /* read all compressed data */
|
||||||
|
|||||||
Reference in New Issue
Block a user