From: W. Felix Handte Date: Thu, 8 Mar 2018 17:29:45 +0000 (-0500) Subject: Further Avoid a dictionary==NULL Check X-Git-Tag: upstream/1.9.3~8^2~41^2~1^2^2~18 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b4335a6585fe55aa81bcadaa29e265ffe9550ff2;p=platform%2Fupstream%2Flz4.git Further Avoid a dictionary==NULL Check --- diff --git a/lib/lz4.c b/lib/lz4.c index 4f98efa..da68ddd 100644 --- 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);