From: Yann Collet Date: Sat, 1 Jul 2017 16:09:34 +0000 (-0700) Subject: fixed legacy version init bug X-Git-Tag: v1.3.0~1^2~2^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2485f88bf8104e52a2ef9b50d00db35960daa270;p=thirdparty%2Fzstd.git fixed legacy version init bug --- diff --git a/lib/decompress/zstd_decompress.c b/lib/decompress/zstd_decompress.c index ff791969e..152d16a5a 100644 --- a/lib/decompress/zstd_decompress.c +++ b/lib/decompress/zstd_decompress.c @@ -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; }