Skip to content

Commit

Permalink
Ignore outfile check when -c(check syntax only) flag is enabled.
Browse files Browse the repository at this point in the history
  • Loading branch information
take-cheeze committed Jun 6, 2014
1 parent d3fda42 commit 2f614b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/mrbc/mrbc.c
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ main(int argc, char **argv)
fprintf(stderr, "%s: no program file given\n", args.prog);
return EXIT_FAILURE;
}
if (args.outfile == NULL) {
if (args.outfile == NULL && !args.check_syntax) {
if (n + 1 == argc) {
args.outfile = get_outfilename(mrb, argv[n], args.initname ? C_EXT : RITEBIN_EXT);
}
Expand Down

0 comments on commit 2f614b1

Please sign in to comment.