From 283520baf786b81cfd97fe56909b7e8f2529eb22 Mon Sep 17 00:00:00 2001 From: Mark Adler Date: Wed, 2 Jul 2014 16:34:22 -0700 Subject: Fix bug in test/example.c where error code not saved. --- test/example.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test') 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 */ -- cgit v1.2.3-55-g6feb