From: Hans Kristian Rosbach Date: Fri, 22 May 2015 20:04:25 +0000 (+0200) Subject: Actually set err before checking it X-Git-Tag: 1.9.9-b1~814 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=10a800267df8bddcdf36758f6e8ec6f7020da59d;p=thirdparty%2Fzlib-ng.git Actually set err before checking it --- diff --git a/test/example.c b/test/example.c index a9b730ea5..4d232cf55 100644 --- a/test/example.c +++ b/test/example.c @@ -382,7 +382,7 @@ void test_sync(unsigned char *compr, uLong comprLen, unsigned char *uncompr, uLo 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 */