summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorYann Collet <cyan@fb.com>2017-10-30 23:10:25 (GMT)
committerYann Collet <cyan@fb.com>2017-10-30 23:10:25 (GMT)
commitab4bd93f59dce5d116f1c95373a64cc39ccd6990 (patch)
tree0713289e31410937a6da1d9c45921af9730e2668 /lib
parent16a433747309d209c2247c5074ff3ac8783548c7 (diff)
downloadlz4-ab4bd93f59dce5d116f1c95373a64cc39ccd6990.zip
lz4-ab4bd93f59dce5d116f1c95373a64cc39ccd6990.tar.gz
lz4-ab4bd93f59dce5d116f1c95373a64cc39ccd6990.tar.bz2
fixed minor initialization warning
Diffstat (limited to 'lib')
-rw-r--r--lib/lz4opt.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/lz4opt.h b/lib/lz4opt.h
index bd956ee..2daf17e 100644
--- a/lib/lz4opt.h
+++ b/lib/lz4opt.h
@@ -211,7 +211,7 @@ LZ4_FORCE_INLINE int LZ4HC_HashChain_GetAllMatches (
const BYTE* const ip, const BYTE* const iHighLimit,
size_t best_mlen, LZ4HC_match_t* matches, const int fullUpdate)
{
- const BYTE* matchPtr;
+ const BYTE* matchPtr = NULL;
int matchLength = LZ4HC_FindLongerMatch(ctx, ip, iHighLimit, (int)best_mlen, &matchPtr, ctx->searchNum);
if ((size_t)matchLength <= best_mlen) return 0;
assert(matches != NULL);