From 8c99e311cf5ca64cc4f37d223e83eb45ef6fff4f Mon Sep 17 00:00:00 2001 From: Nick Terrell Date: Tue, 11 Dec 2018 15:57:56 -0800 Subject: [PATCH] Reset the cctx for documentation/safety --- tests/regression/method.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/regression/method.c b/tests/regression/method.c index 73d8bbf5..a43e9148 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))) {