1
0
mirror of https://github.com/facebook/zstd.git synced 2025-07-30 22:23:13 +03:00
This commit is contained in:
jinyaoguo
2025-06-21 13:43:47 -04:00
parent 16e13ebdeb
commit 878be1c8f0

View 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;
}