summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorW. Felix Handte <w@felixhandte.com>2020-08-05 16:46:32 (GMT)
committerW. Felix Handte <w@felixhandte.com>2020-08-05 16:46:32 (GMT)
commitd7399232a4d547d7183c193997e17d534d000f52 (patch)
tree9c787bc27c50af67aeccab90c5e698a36a035bcc
parentcd5d78ebd0a75c68432a1935c8ef9eeb952275c1 (diff)
downloadlz4-d7399232a4d547d7183c193997e17d534d000f52.zip
lz4-d7399232a4d547d7183c193997e17d534d000f52.tar.gz
lz4-d7399232a4d547d7183c193997e17d534d000f52.tar.bz2
Remove Extraneous Reset in LZ4_attach_dictionary()
Nothing internally sets dirty anymore. The only way to get that is if you use an uninitialized context, in which case your warranty is void anyways.
-rw-r--r--lib/lz4.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/lib/lz4.c b/lib/lz4.c
index ae50d54..46c8e11 100644
--- a/lib/lz4.c
+++ b/lib/lz4.c
@@ -1455,12 +1455,6 @@ void LZ4_attach_dictionary(LZ4_stream_t* workingStream, const LZ4_stream_t* dict
workingStream, dictionaryStream,
dictCtx != NULL ? dictCtx->dictSize : 0);
- /* Calling LZ4_resetStream_fast() here makes sure that changes will not be
- * erased by subsequent calls to LZ4_resetStream_fast() in case stream was
- * marked as having dirty context, e.g. requiring full reset.
- */
- LZ4_resetStream_fast(workingStream);
-
if (dictCtx != NULL) {
/* If the current offset is zero, we will never look in the
* external dictionary context, since there is no value a table