From: Yann Collet Date: Sat, 3 Jun 2017 00:16:49 +0000 (-0700) Subject: fixed missing initialization X-Git-Tag: v1.3.0~1^2~17^2~59 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8ddf4c22d5e64736aab775990c17e6f7719316b3;p=thirdparty%2Fzstd.git fixed missing initialization --- diff --git a/lib/decompress/zstd_decompress.c b/lib/decompress/zstd_decompress.c index 33a905a20..68ec13d1a 100644 --- a/lib/decompress/zstd_decompress.c +++ b/lib/decompress/zstd_decompress.c @@ -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; }