From dce9a09772887af5a4a0e64564b15308a21c3576 Mon Sep 17 00:00:00 2001 From: shakeelrao Date: Thu, 28 Feb 2019 03:01:21 -0800 Subject: [PATCH] initialize local vars in decompressBound --- lib/decompress/zstd_decompress.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/decompress/zstd_decompress.c b/lib/decompress/zstd_decompress.c index d2916d7ef..b7eccdfe8 100644 --- a/lib/decompress/zstd_decompress.c +++ b/lib/decompress/zstd_decompress.c @@ -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;