]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
initialize local vars in decompressBound
authorshakeelrao <shakeelrao79@gmail.com>
Thu, 28 Feb 2019 11:01:21 +0000 (03:01 -0800)
committershakeelrao <shakeelrao79@gmail.com>
Thu, 28 Feb 2019 11:01:21 +0000 (03:01 -0800)
lib/decompress/zstd_decompress.c

index d2916d7ef223317b235e27cbe7affdc2dc13bc9b..b7eccdfe8999ce029cf42afa6c76b0ae35b80a42 100644 (file)
@@ -528,9 +528,9 @@ unsigned long long ZSTD_decompressBound(const void* src, size_t srcSize)
             continue;
         }
 
-        {   size_t bound;
-            unsigned long long frameBound;
-            size_t frameSrcSize;
+        {   size_t bound = 0;
+            unsigned long long frameBound = 0;
+            size_t frameSrcSize = 0;
             unsigned long long const ret = ZSTD_getFrameContentSize(src, srcSize);
             if (ret == ZSTD_CONTENTSIZE_ERROR) return ret;