summaryrefslogtreecommitdiffstats
path: root/lib/lz4frame.c
diff options
context:
space:
mode:
authorYann Collet <Cyan4973@users.noreply.github.com>2016-09-06 14:49:34 (GMT)
committerGitHub <noreply@github.com>2016-09-06 14:49:34 (GMT)
commit8eae1320c29f21f5f6d0493210a942a2eaf8d826 (patch)
tree2083438439f54127973f5ef7c5dd994659a72c83 /lib/lz4frame.c
parent33993542af61ebaa87db3a0adbfe3661c0a5d313 (diff)
parent3eb143fffa0a557726658d8164e76239dea9245c (diff)
downloadlz4-8eae1320c29f21f5f6d0493210a942a2eaf8d826.zip
lz4-8eae1320c29f21f5f6d0493210a942a2eaf8d826.tar.gz
lz4-8eae1320c29f21f5f6d0493210a942a2eaf8d826.tar.bz2
Merge pull request #236 from inikep/dev
fix bug #232 at https://github.com/Cyan4973/lz4/issues/232
Diffstat (limited to 'lib/lz4frame.c')
-rw-r--r--lib/lz4frame.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/lz4frame.c b/lib/lz4frame.c
index 4cf259f..9df2493 100644
--- a/lib/lz4frame.c
+++ b/lib/lz4frame.c
@@ -711,6 +711,7 @@ size_t LZ4F_compressEnd(LZ4F_compressionContext_t compressionContext, void* dstB
}
cctxPtr->cStage = 0; /* state is now re-usable (with identical preferences) */
+ cctxPtr->maxBufferSize = 0; /* reuse HC context */
if (cctxPtr->prefs.frameInfo.contentSize) {
if (cctxPtr->prefs.frameInfo.contentSize != cctxPtr->totalInSize)