Make Sure Position 0 Gets Into the Tree

This commit is contained in:
W. Felix Handte
2018-06-19 15:10:06 -04:00
parent 87fe4788a3
commit f0a13bcd68
2 changed files with 5 additions and 2 deletions
+1
View File
@@ -966,6 +966,7 @@ static void ZSTD_invalidateMatchState(ZSTD_matchState_t* ms)
ZSTD_window_clear(&ms->window);
ms->nextToUpdate = ms->window.dictLimit + 1;
ms->nextToUpdate3 = ms->window.dictLimit + 1;
ms->loadedDictEnd = 0;
ms->opt.litLengthSum = 0; /* force reset of btopt stats */
ms->dictMatchState = NULL;