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:
64bcbf4
)
Further Avoid a dictionary==NULL Check
author
W. Felix Handte
<w@felixhandte.com>
Thu, 8 Mar 2018 17:29:45 +0000
(12:29 -0500)
committer
W. Felix Handte
<w@felixhandte.com>
Mon, 12 Mar 2018 18:58:43 +0000
(14:58 -0400)
lib/lz4.c
patch
|
blob
|
history
diff --git
a/lib/lz4.c
b/lib/lz4.c
index
4f98efa
..
da68ddd
100644
(file)
--- a/
lib/lz4.c
+++ b/
lib/lz4.c
@@
-708,7
+708,7
@@
_next_match:
/* Encode MatchLength */
{ unsigned matchCode;
- if ((dictDirective==usingExtDict || dictDirective==usingExtDictCtx) &&
((lowLimit==dictLowLimit) & (dictionary != NULL))
) {
+ if ((dictDirective==usingExtDict || dictDirective==usingExtDictCtx) &&
lowLimit==dictionary
) {
const BYTE* limit;
match += refDelta;
limit = ip + (dictEnd-match);