summaryrefslogtreecommitdiff
path: root/proc.c
diff options
context:
space:
mode:
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;
}