From: Nick Terrell Date: Fri, 24 Jan 2020 01:54:48 +0000 (-0800) Subject: Initialize dctx->bType to silence valgrind false positive X-Git-Tag: v1.4.5^2~110^2^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fa6a772f38f4ac2bea1a428743f2bcdd41fa267a;p=thirdparty%2Fzstd.git Initialize dctx->bType to silence valgrind false positive --- diff --git a/lib/decompress/zstd_decompress.c b/lib/decompress/zstd_decompress.c index 8ca7c5e41..f87e26184 100644 --- a/lib/decompress/zstd_decompress.c +++ b/lib/decompress/zstd_decompress.c @@ -1159,6 +1159,7 @@ size_t ZSTD_decompressBegin(ZSTD_DCtx* dctx) dctx->entropy.hufTable[0] = (HUF_DTable)((HufLog)*0x1000001); /* cover both little and big endian */ dctx->litEntropy = dctx->fseEntropy = 0; dctx->dictID = 0; + dctx->bType = bt_reserved; ZSTD_STATIC_ASSERT(sizeof(dctx->entropy.rep) == sizeof(repStartValue)); memcpy(dctx->entropy.rep, repStartValue, sizeof(repStartValue)); /* initial repcodes */ dctx->LLTptr = dctx->entropy.LLTable;