diff --git a/tests/largeDictionary.c b/tests/largeDictionary.c index 30ff98d98..b824960fc 100644 --- a/tests/largeDictionary.c +++ b/tests/largeDictionary.c @@ -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; }