Merge pull request #1802 from tmash06/fix_syntax_check_no_exec

mruby command should not execute program on "syntax only option(-c)".
This commit is contained in:
Yukihiro "Matz" Matsumoto
2014-03-05 13:11:54 +09:00
+1 -1
View File
@@ -201,7 +201,7 @@ main(int argc, char **argv)
if (args.verbose)
c->dump_result = TRUE;
if (args.check_syntax)
c->no_exec = FALSE;
c->no_exec = TRUE;
if (args.mrbfile) {
v = mrb_load_irep_file_cxt(mrb, args.rfp, c);
}