Merge pull request #3626 from take-cheeze/string_get_args_bug

Add missing `arg_i++` to fix bug of `s!` in mrb_get_args.
This commit is contained in:
Yukihiro "Matz" Matsumoto
2017-04-21 22:27:07 +09:00
committed by GitHub
+1 -1
View File
@@ -696,7 +696,7 @@ mrb_get_args(mrb_state *mrb, const char *format, ...)
if (i < argc && mrb_nil_p(ARGV[arg_i])) {
*ps = NULL;
*pl = 0;
i++;
i++; arg_i++;
break;
}
}