From: Nick Terrell Date: Tue, 11 Dec 2018 23:57:56 +0000 (-0800) Subject: Reset the cctx for documentation/safety X-Git-Tag: v1.3.8~31^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F1445%2Fhead;p=thirdparty%2Fzstd.git Reset the cctx for documentation/safety --- diff --git a/tests/regression/method.c b/tests/regression/method.c index 73d8bbf59..a43e91489 100644 --- a/tests/regression/method.c +++ b/tests/regression/method.c @@ -293,6 +293,7 @@ static int advanced_config( ZSTD_CCtx* cctx, buffer_state_t* state, config_t const* config) { + ZSTD_CCtx_reset(cctx, ZSTD_reset_session_and_parameters); for (size_t p = 0; p < config->param_values.size; ++p) { param_value_t const pv = config->param_values.data[p]; if (ZSTD_isError(ZSTD_CCtx_setParameter(cctx, pv.param, pv.value))) {