summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYann Collet <yann.collet.73@gmail.com>2015-04-24 10:04:21 (GMT)
committerYann Collet <yann.collet.73@gmail.com>2015-04-24 10:04:21 (GMT)
commit87a1c70ae43fe7569ec93c73fedc7e706faf00ae (patch)
tree7ba31d9fbfdc9e0f48e26bf940708997daec103d
parentd6dc0a410d0be93551f247eeb871603d2db11c17 (diff)
downloadlz4-87a1c70ae43fe7569ec93c73fedc7e706faf00ae.zip
lz4-87a1c70ae43fe7569ec93c73fedc7e706faf00ae.tar.gz
lz4-87a1c70ae43fe7569ec93c73fedc7e706faf00ae.tar.bz2
Fixed minor static analyzer warning
-rw-r--r--programs/fuzzer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/programs/fuzzer.c b/programs/fuzzer.c
index 685553b..2bf3cfe 100644
--- a/programs/fuzzer.c
+++ b/programs/fuzzer.c
@@ -968,7 +968,7 @@ static void FUZ_unitTests(void)
LZ4_streamDecode_t decodeState;
const U32 maxMessageSizeLog = 12;
const U32 maxMessageSizeMask = (1<<maxMessageSizeLog) - 1;
- U32 messageSize = (FUZ_rand(&randState) & maxMessageSizeMask) + 1;
+ U32 messageSize;
U32 totalMessageSize = 0;
U32 iNext = 0;
U32 dNext = 0;