From: Nick Terrell Date: Fri, 15 Feb 2019 22:14:32 +0000 (-0800) Subject: Fix a bug in the compress cctx method X-Git-Tag: v1.4.0^2~35^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5261a288d1fcecdbae988468d8d3191572bb7f49;p=thirdparty%2Fzstd.git Fix a bug in the compress cctx method --- diff --git a/tests/regression/method.c b/tests/regression/method.c index 51a0fb9d1..16701c0b4 100644 --- a/tests/regression/method.c +++ b/tests/regression/method.c @@ -175,8 +175,8 @@ static result_t compress_cctx_compress( state->compressed.capacity, input.data, input.size, - state->dictionary.data, - state->dictionary.size, + config->use_dictionary ? state->dictionary.data : NULL, + config->use_dictionary ? state->dictionary.size : 0, params); else if (config->use_dictionary) state->compressed.size = ZSTD_compress_usingDict(