]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
fixed legacy version init bug
authorYann Collet <cyan@fb.com>
Sat, 1 Jul 2017 16:09:34 +0000 (09:09 -0700)
committerYann Collet <cyan@fb.com>
Sat, 1 Jul 2017 16:09:34 +0000 (09:09 -0700)
lib/decompress/zstd_decompress.c

index ff791969eb2a283763538ecd47adb70b506fed9e..152d16a5ac9ef5bf1d07954a1aefb61fb0f73d46 100644 (file)
@@ -198,6 +198,7 @@ ZSTD_DCtx* ZSTD_createDCtx_advanced(ZSTD_customMem customMem)
         if (!dctx) return NULL;
         dctx->customMem = customMem;
         dctx->legacyContext = NULL;
+        dctx->previousLegacyVersion = 0;
         ZSTD_initDCtx_internal(dctx);
         return dctx;
     }