aboutsummaryrefslogtreecommitdiff
path: root/ports/zstd/fix-c4703-error.patch
blob: 9af18d74125df31d0fa2104c69d0f3b99a332729 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
diff --git a/lib/compress/zstd_lazy.c b/lib/compress/zstd_lazy.c
index 3d523e8..3dd1426 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;