Move asserts to loadZstdDictionary()

This commit is contained in:
Sen Huang
2019-11-08 13:57:26 -05:00
parent b39149e156
commit d06b90692b
2 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -112,7 +112,7 @@ size_t ZDICT_getDictHeaderSize(const void* dictBuffer, size_t dictSize)
if (!bs || !wksp || !offcodeNCount) {
return ERROR(memory_allocation);
}
ZSTD_reset_compressedBlockState(bs);
headerSize = ZSTD_loadCEntropy(bs, wksp, offcodeNCount, &offcodeMaxValue, dictBuffer, dictSize);
free(bs);