summaryrefslogtreecommitdiff
path: root/eval.c
diff options
context:
space:
mode:
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/eval.c b/eval.c
index 76718d3de5..3c3ba85fef 100644
--- a/eval.c
+++ b/eval.c
@@ -6028,6 +6028,9 @@ static VALUE
mcall(args, method)
VALUE args, method;
{
+ if (NIL_P(args)) {
+ return method_call(0, 0, method);
+ }
if (TYPE(args) == T_ARRAY) {
return method_call(RARRAY(args)->len, RARRAY(args)->ptr, method);
}