diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/lz4frame.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/lz4frame.c b/lib/lz4frame.c index 1dc2bca..d6a68b6 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) |