summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorW. Felix Handte <w@felixhandte.com>2018-03-22 20:59:50 (GMT)
committerW. Felix Handte <w@felixhandte.com>2018-04-20 00:54:35 (GMT)
commit595ea582890031c30ded483130116ec6a0179a5c (patch)
tree47763553defec2a6a720be5071d065db02e5bbac /lib
parent66d217e2400e07fd91753881890722b6dc28ee4b (diff)
downloadlz4-595ea582890031c30ded483130116ec6a0179a5c.zip
lz4-595ea582890031c30ded483130116ec6a0179a5c.tar.gz
lz4-595ea582890031c30ded483130116ec6a0179a5c.tar.bz2
Avoid Resetting Hash Table
Diffstat (limited to 'lib')
-rw-r--r--lib/lz4hc.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/lz4hc.c b/lib/lz4hc.c
index 2775713..b6d9bf0 100644
--- a/lib/lz4hc.c
+++ b/lib/lz4hc.c
@@ -87,7 +87,6 @@ static U32 LZ4HC_hashPtr(const void* ptr) { return HASH_FUNCTION(LZ4_read32(ptr)
static void LZ4HC_init (LZ4HC_CCtx_internal* hc4, const BYTE* start)
{
DEBUGLOG(4, "LZ4HC_init(%p, %p)", hc4, start);
- MEM_INIT((void*)hc4->hashTable, 0, sizeof(hc4->hashTable));
MEM_INIT(hc4->chainTable, 0xFF, sizeof(hc4->chainTable));
hc4->nextToUpdate = 64 KB;
hc4->base = start - 64 KB;