From: Yann Collet Date: Mon, 15 Apr 2019 18:17:35 +0000 (-0700) Subject: added a fake initialization to please an analyzer X-Git-Tag: upstream/1.9.3~5^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ac5d2629c1689efb0864225a71465e8d27526bf3;p=platform%2Fupstream%2Flz4.git added a fake initialization to please an analyzer which is unable to understand that the variable is necessarily initialized in spite of an assert just before. --- diff --git a/tests/frametest.c b/tests/frametest.c index 657a963..a5197ff 100644 --- a/tests/frametest.c +++ b/tests/frametest.c @@ -920,7 +920,7 @@ int fuzzerTests(U32 seed, unsigned nbTests, unsigned startTest, double compressi unsigned const maxBits = MAX(3, suggestedBits); unsigned const nonContiguousDst = FUZ_rand(&randState) % 3; /* 0 : contiguous; 1 : non-contiguous; 2 : dst overwritten */ size_t totalOut = 0; - size_t decSize; + size_t decSize = 0; XXH64_state_t xxh64; XXH64_reset(&xxh64, 1); assert(ip < iend);