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:
98e5c00
)
added a fake initialization to please an analyzer
author
Yann Collet
<cyan@fb.com>
Mon, 15 Apr 2019 18:17:35 +0000
(11:17 -0700)
committer
Yann Collet
<cyan@fb.com>
Mon, 15 Apr 2019 18:17:35 +0000
(11:17 -0700)
which is unable to understand that the variable is necessarily initialized
in spite of an assert just before.
tests/frametest.c
patch
|
blob
|
history
diff --git
a/tests/frametest.c
b/tests/frametest.c
index
657a963
..
a5197ff
100644
(file)
--- 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);