Move asserts to loadZstdDictionary()

This commit is contained in:
Sen Huang committed 2019-11-08 13:57:26 -05:00
1 parent b39149e156
commit d06b90692b
2 files changed
+5 -5

No files matched your search

+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);