From: Przemyslaw Skibinski Date: Mon, 13 Feb 2017 21:56:31 +0000 (+0100) Subject: fixed unitialized variable warning X-Git-Tag: v1.1.4~1^2~65^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1a195b3b7a4cb9efaa26e7d9c5c64173e65ba8e8;p=thirdparty%2Fzstd.git fixed unitialized variable warning --- diff --git a/programs/fileio.c b/programs/fileio.c index ca83db6f0..b8066a7a3 100644 --- a/programs/fileio.c +++ b/programs/fileio.c @@ -376,8 +376,8 @@ static unsigned long long FIO_compressGzFrame(cRess_t* ress, const char* srcFile strm.zfree = Z_NULL; strm.opaque = Z_NULL; - if (deflateInit2(&strm, compressionLevel, Z_DEFLATED, 15 /* maxWindowLogSize */ + 16 /* gzip only */, 8, Z_DEFAULT_STRATEGY) != Z_OK) - EXM_THROW(71, "zstd: %s: deflateInit2 error %d \n", srcFileName, ret); /* see http://www.zlib.net/manual.html */ + ret = deflateInit2(&strm, compressionLevel, Z_DEFLATED, 15 /* maxWindowLogSize */ + 16 /* gzip only */, 8, Z_DEFAULT_STRATEGY); + if (ret != Z_OK) EXM_THROW(71, "zstd: %s: deflateInit2 error %d \n", srcFileName, ret); /* see http://www.zlib.net/manual.html */ strm.next_in = 0; strm.avail_in = Z_NULL;