]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
fixed unitialized variable warning
authorPrzemyslaw Skibinski <inikep@gmail.com>
Mon, 13 Feb 2017 21:56:31 +0000 (22:56 +0100)
committerPrzemyslaw Skibinski <inikep@gmail.com>
Mon, 13 Feb 2017 21:56:31 +0000 (22:56 +0100)
programs/fileio.c

index ca83db6f08c6fcb777294d02e7f032fd014d9508..b8066a7a312d7327cab2cb9f4c94aca021de9b66 100644 (file)
@@ -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;