summaryrefslogtreecommitdiff
path: root/eval.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-05-31 16:41:03 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-05-31 16:41:03 +0000
commitef1b455cc0b047714d6c72e31a106edd98794a3b (patch)
treea200696c2e0643a41abbfe1da37db1485ae8854a /eval.c
parentf33592b3914c88346cb4e4afa8751ec67154680d (diff)
2000-06-01
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_4@721 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
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);
}