From 8fb94b9a91db81bc1cb8824c4c7432960e5cbafc Mon Sep 17 00:00:00 2001 From: Yonatan Komornik Date: Wed, 21 Sep 2022 14:45:55 -0700 Subject: [PATCH] Removed unused variable --- tests/zstreamtest.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/zstreamtest.c b/tests/zstreamtest.c index 94eb848aa1b..ce9020f128c 100644 --- a/tests/zstreamtest.c +++ b/tests/zstreamtest.c @@ -1974,8 +1974,9 @@ static int fuzzerTests(U32 seed, unsigned nbTests, unsigned startTest, double co /* multi-segments compression test */ XXH64_reset(&xxhState, 0); { ZSTD_outBuffer outBuff = { cBuffer, cBufferSize, 0 } ; - U32 n; - for (n=0, cSize=0, totalTestSize=0 ; totalTestSize < maxTestSize ; n++) { + cSize=0; + totalTestSize=0; + while(totalTestSize < maxTestSize) { /* compress random chunks into randomly sized dst buffers */ { size_t const randomSrcSize = FUZ_randomLength(&lseed, maxSampleLog); size_t const srcSize = MIN(maxTestSize-totalTestSize, randomSrcSize);