aboutsummaryrefslogtreecommitdiff
path: root/lib/lz4hc.c
diff options
context:
space:
mode:
authorW. Felix Handte <w@felixhandte.com>2018-03-22 16:59:50 -0400
committerW. Felix Handte <w@felixhandte.com>2018-04-19 20:54:35 -0400
commit595ea582890031c30ded483130116ec6a0179a5c (patch)
tree47763553defec2a6a720be5071d065db02e5bbac /lib/lz4hc.c
parent66d217e2400e07fd91753881890722b6dc28ee4b (diff)
downloadlz4-595ea582890031c30ded483130116ec6a0179a5c.tar.gz
Avoid Resetting Hash Table
Diffstat (limited to 'lib/lz4hc.c')
-rw-r--r--lib/lz4hc.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/lz4hc.c b/lib/lz4hc.c
index 2775713d..b6d9bf09 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;