diff options
author | W. Felix Handte <w@felixhandte.com> | 2018-04-20 18:16:27 (GMT) |
---|---|---|
committer | W. Felix Handte <w@felixhandte.com> | 2018-04-20 18:16:27 (GMT) |
commit | ca833f928f64d0b88fbfd2a8a8bc11b8333e487d (patch) | |
tree | b0b2dd3419c39a9de61175263f9cfb34c460930d /lib | |
parent | 8f118cf6e9f3030f52414177d93ab447e8e24128 (diff) | |
download | lz4-ca833f928f64d0b88fbfd2a8a8bc11b8333e487d.zip lz4-ca833f928f64d0b88fbfd2a8a8bc11b8333e487d.tar.gz lz4-ca833f928f64d0b88fbfd2a8a8bc11b8333e487d.tar.bz2 |
Also Reset the Chain Table
Diffstat (limited to 'lib')
-rw-r--r-- | lib/lz4hc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/lz4hc.c b/lib/lz4hc.c index dff42f0..124da86 100644 --- a/lib/lz4hc.c +++ b/lib/lz4hc.c @@ -98,7 +98,7 @@ static void LZ4HC_init (LZ4HC_CCtx_internal* hc4, const BYTE* start) uptrval startingOffset = hc4->end - hc4->base; DEBUGLOG(4, "LZ4HC_init(%p, %p)", hc4, start); if (startingOffset > 1 GB || startingOffset > (uptrval)start) { - MEM_INIT((void*)hc4->hashTable, 0, sizeof(hc4->hashTable)); + LZ4HC_clearTables(hc4); startingOffset = 0; } startingOffset += MAX_DISTANCE; |