projects
/
platform
/
upstream
/
lz4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fdeead0
)
Call LZ4F_applyCDict Even on NULL CDict
author
W. Felix Handte
<w@felixhandte.com>
Wed, 21 Mar 2018 20:43:15 +0000
(16:43 -0400)
committer
W. Felix Handte
<w@felixhandte.com>
Fri, 20 Apr 2018 00:54:35 +0000
(20:54 -0400)
lib/lz4frame.c
patch
|
blob
|
history
diff --git
a/lib/lz4frame.c
b/lib/lz4frame.c
index
821cb49
..
ea6a668
100644
(file)
--- 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);