summaryrefslogtreecommitdiff
path: root/proc.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-03-14 17:09:33 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-03-14 17:09:33 +0000
commitf621b32e58fa7266e83884be795d00ee41c86560 (patch)
treef0702c648895bd829f219fc262b142151aaaa438 /proc.c
parent4de12b6ae9a7fc1e28ada4b62291a78f28ae7528 (diff)
* proc.c (bmcall): should not uninitialized variable. a patch from
pegacorn at [ruby-dev:38169]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22958 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'proc.c')
-rw-r--r--proc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/proc.c b/proc.c
index f43c438511..9f2a46416d 100644
--- a/proc.c
+++ b/proc.c
@@ -1647,8 +1647,8 @@ bmcall(VALUE args, VALUE method)
else {
argc = check_argc(RARRAY_LEN(args));
}
- ret = rb_method_call(argc, RARRAY_PTR(a), method);
- a = args;
+ ret = rb_method_call(argc, RARRAY_PTR(args), method);
+ RB_GC_GUARD(a) = args;
return ret;
}