]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
Removed unused variable (#3272)
authorYonatan Komornik <11005061+yoniko@users.noreply.github.com>
Thu, 22 Sep 2022 15:20:46 +0000 (08:20 -0700)
committerGitHub <noreply@github.com>
Thu, 22 Sep 2022 15:20:46 +0000 (08:20 -0700)
tests/zstreamtest.c

index 94eb848aa1b1bce83bec93e4f9103e551ebb2651..ce9020f128c0228b0f7229305abb7abded7499c4 100644 (file)
@@ -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);