diff options
author | W. Felix Handte <w@felixhandte.com> | 2018-03-21 20:43:15 (GMT) |
---|---|---|
committer | W. Felix Handte <w@felixhandte.com> | 2018-04-20 00:54:35 (GMT) |
commit | 6289ff4fb1a560115ffd2c5dff93389d917a6e4e (patch) | |
tree | c9540b01434eedbca416a6f5ecb70499823a41cf /lib | |
parent | fdeead0b09188213e51e037edcf9c9daf88d25c4 (diff) | |
download | lz4-6289ff4fb1a560115ffd2c5dff93389d917a6e4e.zip lz4-6289ff4fb1a560115ffd2c5dff93389d917a6e4e.tar.gz lz4-6289ff4fb1a560115ffd2c5dff93389d917a6e4e.tar.bz2 |
Call LZ4F_applyCDict Even on NULL CDict
Diffstat (limited to 'lib')
-rw-r--r-- | lib/lz4frame.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/lz4frame.c b/lib/lz4frame.c index 821cb49..ea6a668 100644 --- a/lib/lz4frame.c +++ b/lib/lz4frame.c @@ -739,8 +739,8 @@ static int LZ4F_compressBlock_continue(void* ctx, const char* src, char* dst, in static int LZ4F_compressBlockHC(void* ctx, const char* src, char* dst, int srcSize, int dstCapacity, int level, const LZ4F_CDict* cdict) { + LZ4F_applyCDict(ctx, cdict, level); if (cdict) { - LZ4F_applyCDict(ctx, cdict, level); return LZ4_compress_HC_continue((LZ4_streamHC_t*)ctx, src, dst, srcSize, dstCapacity); } return LZ4_compress_HC_extStateHC(ctx, src, dst, srcSize, dstCapacity, level); |