Merge pull request #4855 from dearblue/kwargs-uninit

Fix keyword arguments not be obtained with `mrb_get_args()`; Fix #4754
This commit is contained in:
Yukihiro "Matz" Matsumoto
2019-12-09 17:31:53 +09:00
committed by GitHub
+3 -3
View File
@@ -620,11 +620,11 @@ mrb_get_args(mrb_state *mrb, const char *format, ...)
goto check_exit;
case '!':
break;
case '&': case '?':
if (opt) opt_skip = FALSE;
break;
case ':':
reqkarg = TRUE;
/* fall through */
case '&': case '?':
if (opt) opt_skip = FALSE;
break;
default:
if (!opt) needargc ++;