summaryrefslogtreecommitdiff
path: root/eval.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-07-04 07:04:42 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-07-04 07:04:42 +0000
commit79096829406349429b32054133ab178d55ed84f1 (patch)
tree1f49a98fb0a327f549b43744726c470e33b4ee90 /eval.c
parent38402e0415d64e2516a72e4b9d764c675453da37 (diff)
matz
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@812 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/eval.c b/eval.c
index b2e2d63074..6d8b1a5a7b 100644
--- a/eval.c
+++ b/eval.c
@@ -5919,7 +5919,7 @@ proc_call(proc, args)
PUSH_ITER(ITER_CUR);
ruby_frame->iter = ITER_CUR;
- if (TYPE(args) == T_ARRAY) {
+ if (args != Qundef && TYPE(args) == T_ARRAY) {
args = callargs(args);
}