summaryrefslogtreecommitdiffstats
path: root/lib/lz4frame.c
diff options
context:
space:
mode:
authorW. Felix Handte <w@felixhandte.com>2018-04-11 20:04:24 (GMT)
committerW. Felix Handte <w@felixhandte.com>2018-04-11 20:28:56 (GMT)
commitafa52c9b95dd1f83d80cd9a783a408822700e2d3 (patch)
tree948ff0fb0825c09f2835f6575aa400740fd6f615 /lib/lz4frame.c
parent21f0c9700b28301bdc8b49fcbe4ccdddf4cf5dea (diff)
downloadlz4-afa52c9b95dd1f83d80cd9a783a408822700e2d3.zip
lz4-afa52c9b95dd1f83d80cd9a783a408822700e2d3.tar.gz
lz4-afa52c9b95dd1f83d80cd9a783a408822700e2d3.tar.bz2
Expose dictCtx Functionality in LZ4
Diffstat (limited to 'lib/lz4frame.c')
-rw-r--r--lib/lz4frame.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/lz4frame.c b/lib/lz4frame.c
index 5e11ba2..d973b5f 100644
--- a/lib/lz4frame.c
+++ b/lib/lz4frame.c
@@ -533,8 +533,7 @@ static void LZ4F_applyCDict(void* ctx,
LZ4_stream_t_internal* internal_ctx = &((LZ4_stream_t *)ctx)->internal_donotuse;
assert(!internal_ctx->initCheck);
LZ4_resetStream_fast((LZ4_stream_t *)ctx);
- /* Point to the dictionary context */
- internal_ctx->dictCtx = cdict ? &(cdict->fastCtx->internal_donotuse) : NULL;
+ LZ4_attach_dictionary((LZ4_stream_t *)ctx, cdict ? cdict->fastCtx : NULL);
} else {
if (cdict) {
memcpy(ctx, cdict->HCCtx, sizeof(*cdict->HCCtx));