Remove call to memset

The previous commit fixes the test so it errors on calls to mem*()
functions from <string.h>.
This commit is contained in:
Nick Terrell 2020-09-24 16:03:28 -07:00
parent 683150e59f
commit 88fac5d514

View File

@ -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;