mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Merge pull request #4635 from shuujii/fix-wrong-argument-for-fprintf-in-mruby-bin-mrbc
Fix wrong argument for `fprintf` in `mruby-bin-mrbc`
This commit is contained in:
@@ -71,7 +71,6 @@ get_outfilename(mrb_state *mrb, char *infile, const char *ext)
|
||||
static int
|
||||
parse_args(mrb_state *mrb, int argc, char **argv, struct mrbc_args *args)
|
||||
{
|
||||
char *outfile = NULL;
|
||||
static const struct mrbc_args args_zero = { 0 };
|
||||
int i;
|
||||
|
||||
@@ -86,7 +85,7 @@ parse_args(mrb_state *mrb, int argc, char **argv, struct mrbc_args *args)
|
||||
case 'o':
|
||||
if (args->outfile) {
|
||||
fprintf(stderr, "%s: an output file is already specified. (%s)\n",
|
||||
args->prog, outfile);
|
||||
args->prog, args->outfile);
|
||||
return -1;
|
||||
}
|
||||
if (argv[i][2] == '\0' && argv[i+1]) {
|
||||
|
||||
Reference in New Issue
Block a user