[ldm][mt] Fix loadedDictEnd

This commit is contained in:
Nick Terrell 2020-05-19 15:55:03 -07:00
parent 0dcd3eec43
commit 3cc227e90e

View File

@ -513,6 +513,7 @@ ZSTDMT_serialState_reset(serialState_t* serialState,
memset(serialState->ldmState.bucketOffsets, 0, bucketSize);
/* Update window state and fill hash table with dict */
serialState->ldmState.loadedDictEnd = 0;
if (dictSize > 0) {
if (dictContentType == ZSTD_dct_rawContent) {
BYTE const* const dictEnd = (const BYTE*)dict + dictSize;
@ -528,9 +529,6 @@ ZSTDMT_serialState_reset(serialState_t* serialState,
serialState->ldmWindow = serialState->ldmState.window;
}
if (params.ldmParams.enableLdm && dict) {
}
serialState->params = params;
serialState->params.jobSize = (U32)jobSize;
return 0;