Fix bug in test/example.c where error code not saved.

This commit is contained in:
Mark Adler 2014-07-02 16:34:22 -07:00
parent 9cbda797c1
commit 283520baf7
1 changed files with 1 additions and 1 deletions

View File

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