Skip to content

Commit

Permalink
Fix bug in test/example.c where error code not saved.
Browse files Browse the repository at this point in the history
  • Loading branch information
madler committed Jul 2, 2014
1 parent 9cbda79 commit 283520b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/example.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 283520b

Please sign in to comment.