mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Fix compiler warning by exiting if wfp isn't set
This commit is contained in:
@@ -285,6 +285,10 @@ main(int argc, char **argv)
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
}
|
||||
else {
|
||||
fprintf(stderr, "Output file is required\n");
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
result = dump_file(mrb, wfp, args.outfile, &args);
|
||||
fclose(wfp);
|
||||
cleanup(mrb, &args);
|
||||
|
||||
Reference in New Issue
Block a user