]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
fix 4402/head
authorjinyaoguo <guo846@purdue.edu>
Sat, 21 Jun 2025 17:43:47 +0000 (13:43 -0400)
committerjinyaoguo <guo846@purdue.edu>
Sat, 21 Jun 2025 17:43:47 +0000 (13:43 -0400)
tests/largeDictionary.c

index 30ff98d98b478215920244dc0aaa18c34c93434f..b824960fc9dd3ceb554bdd4cc8315fb81912db72 100644 (file)
@@ -73,7 +73,6 @@ int main(int argc, const char** argv)
     int _exit_code = 1;
     (void)argc;
     (void)argv;
-    int _exit_code = 0;
 
     if (!buffer || !out || !roundtrip || !cctx || !dctx) {
         fprintf(stderr, "Allocation failure\n");
@@ -119,6 +118,7 @@ int main(int argc, const char** argv)
     if (compress(cctx, dctx, out, outSize, buffer, dataSize, roundtrip, ZSTD_e_end))
         goto cleanup;
 
+    _exit_code = 0;
     fprintf(stderr, "Success!\n");
 
 cleanup:
@@ -128,5 +128,4 @@ cleanup:
     ZSTD_freeDCtx(dctx);
     ZSTD_freeCCtx(cctx);
     return _exit_code;
-    return _exit_code;
 }