From 88fac5d514693a4960b9a11724e9f9d2df8cda21 Mon Sep 17 00:00:00 2001 From: Nick Terrell Date: Thu, 24 Sep 2020 16:03:28 -0700 Subject: [PATCH] Remove call to memset The previous commit fixes the test so it errors on calls to mem*() functions from . --- lib/compress/zstd_compress.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/compress/zstd_compress.c b/lib/compress/zstd_compress.c index 0d2179b5..dc6964f3 100644 --- a/lib/compress/zstd_compress.c +++ b/lib/compress/zstd_compress.c @@ -3503,7 +3503,7 @@ ZSTD_CDict* ZSTD_createCDict_advanced(const void* dictBuffer, size_t dictSize, ZSTD_customMem customMem) { ZSTD_CCtx_params cctxParams; - memset(&cctxParams, 0, sizeof(cctxParams)); + ZSTD_memset(&cctxParams, 0, sizeof(cctxParams)); ZSTD_CCtxParams_init(&cctxParams, 0); cctxParams.cParams = cParams; cctxParams.customMem = customMem;