]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
fixed missing initialization
authorYann Collet <cyan@fb.com>
Sat, 3 Jun 2017 00:16:49 +0000 (17:16 -0700)
committerYann Collet <cyan@fb.com>
Sat, 3 Jun 2017 00:16:49 +0000 (17:16 -0700)
lib/decompress/zstd_decompress.c

index 33a905a20159706f0b0d553518540042f0212a3a..68ec13d1abfe8e96b890c6b2a8f5a6448d0d4ef0 100644 (file)
@@ -209,6 +209,7 @@ ZSTD_DCtx* ZSTD_createDCtx_advanced(ZSTD_customMem customMem)
     {   ZSTD_DCtx* const dctx = (ZSTD_DCtx*)ZSTD_malloc(sizeof(*dctx), customMem);
         if (!dctx) return NULL;
         dctx->customMem = customMem;
+        dctx->legacyContext = NULL;
         ZSTD_initDCtx_internal(dctx);
         return dctx;
     }