From: Nick Terrell Date: Thu, 24 Sep 2020 23:03:28 +0000 (-0700) Subject: Remove call to memset X-Git-Tag: v1.4.7~69^2~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=88fac5d514693a4960b9a11724e9f9d2df8cda21;p=thirdparty%2Fzstd.git Remove call to memset The previous commit fixes the test so it errors on calls to mem*() functions from . --- diff --git a/lib/compress/zstd_compress.c b/lib/compress/zstd_compress.c index 0d2179b56..dc6964f33 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;