Allocate memory for DDict hash set when parameter is set

This commit is contained in:
senhuang42
2021-01-07 12:29:11 -05:00
parent fd5b608f1c
commit 5a6d3eef2b
2 changed files with 23 additions and 0 deletions
@@ -136,6 +136,7 @@ struct ZSTD_DCtx_s
U32 dictID;
int ddictIsCold; /* if == 1 : dictionary is "new" for working context, and presumed "cold" (not in cpu cache) */
ZSTD_dictUses_e dictUses;
ZSTD_DDictHashSet* ddictSet; /* Hash set for multiple ddicts */
ZSTD_refMultipleDDicts_e refMultipleDDicts; /* User specified: if == 1, will allow references to multiple DDicts. Default == 0 (disabled) */
/* streaming */