From 7012c6e7a4dbedad5b6a949a49ce941adc5e8df8 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sat, 15 May 2021 00:40:49 +0200 Subject: [PATCH] Initialize "potentially uninitialized" pointers. --- lib/compress/zstd_lazy.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/compress/zstd_lazy.c b/lib/compress/zstd_lazy.c index 3d523e84..0769fe82 100644 --- a/lib/compress/zstd_lazy.c +++ b/lib/compress/zstd_lazy.c @@ -1296,8 +1296,8 @@ size_t ZSTD_RowFindBestMatch_generic ( size_t ddsIdx; U32 ddsExtraAttempts; /* cctx hash tables are limited in searches, but allow extra searches into DDS */ U32 dmsTag; - U32* dmsRow; - BYTE* dmsTagRow; + U32* dmsRow = NULL; + BYTE* dmsTagRow = NULL; if (dictMode == ZSTD_dedicatedDictSearch) { const U32 ddsHashLog = dms->cParams.hashLog - ZSTD_LAZY_DDSS_BUCKET_LOG;