Skip to content

Commit 8a3bdfa

Browse files
authored
Merge pull request #2654 from wolfpld/dev
Initialize "potentially uninitialized" pointers.
2 parents 5fb3884 + 7012c6e commit 8a3bdfa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/compress/zstd_lazy.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1296,8 +1296,8 @@ size_t ZSTD_RowFindBestMatch_generic (
12961296
size_t ddsIdx;
12971297
U32 ddsExtraAttempts; /* cctx hash tables are limited in searches, but allow extra searches into DDS */
12981298
U32 dmsTag;
1299-
U32* dmsRow;
1300-
BYTE* dmsTagRow;
1299+
U32* dmsRow = NULL;
1300+
BYTE* dmsTagRow = NULL;
13011301

13021302
if (dictMode == ZSTD_dedicatedDictSearch) {
13031303
const U32 ddsHashLog = dms->cParams.hashLog - ZSTD_LAZY_DDSS_BUCKET_LOG;

0 commit comments

Comments
 (0)