diff options
author | W. Felix Handte <w@felixhandte.com> | 2018-03-21 18:49:47 (GMT) |
---|---|---|
committer | W. Felix Handte <w@felixhandte.com> | 2018-04-20 00:54:35 (GMT) |
commit | fdeead0b09188213e51e037edcf9c9daf88d25c4 (patch) | |
tree | dc19adae782e95db3085d54ebf0bd2966f3fbe66 /lib/lz4hc.c | |
parent | a992d11fc2204b7cb0a70962aa5911a58ed4918c (diff) | |
download | lz4-fdeead0b09188213e51e037edcf9c9daf88d25c4.zip lz4-fdeead0b09188213e51e037edcf9c9daf88d25c4.tar.gz lz4-fdeead0b09188213e51e037edcf9c9daf88d25c4.tar.bz2 |
Set dictCtx Rather than memcpy'ing Ctx
Diffstat (limited to 'lib/lz4hc.c')
-rw-r--r-- | lib/lz4hc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/lz4hc.c b/lib/lz4hc.c index 6890613..16830c2 100644 --- a/lib/lz4hc.c +++ b/lib/lz4hc.c @@ -729,6 +729,7 @@ void LZ4_resetStreamHC (LZ4_streamHC_t* LZ4_streamHCPtr, int compressionLevel) LZ4_STATIC_ASSERT(sizeof(LZ4HC_CCtx_internal) <= sizeof(size_t) * LZ4_STREAMHCSIZE_SIZET); /* if compilation fails here, LZ4_STREAMHCSIZE must be increased */ DEBUGLOG(4, "LZ4_resetStreamHC(%p, %d)", LZ4_streamHCPtr, compressionLevel); LZ4_streamHCPtr->internal_donotuse.base = NULL; + LZ4_streamHCPtr->internal_donotuse.dictCtx = NULL; LZ4_setCompressionLevel(LZ4_streamHCPtr, compressionLevel); } |