fix
This commit is contained in:
1 parent
16e13ebdeb
commit
878be1c8f0
1 file changed
+1
-2
@@ -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;
|
||||
}
|
||||
Reference in new issue
Block a user