Initialize "potentially uninitialized" pointers.

This commit is contained in:
Bartosz Taudul 2021-05-15 00:40:49 +02:00
parent 06718087f8
commit 7012c6e7a4
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -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;