aboutsummaryrefslogtreecommitdiffstats
path: root/process.c
diff options
context:
space:
mode:
authorYusuke Endoh <mame@ruby-lang.org>2020-12-18 14:12:42 +0900
committerYusuke Endoh <mame@ruby-lang.org>2020-12-18 16:08:55 +0900
commit982443e6e373f5a3ac22ee495909cb9adffcd08d (patch)
tree111f10669bb784da3fec5721749aef055c2cb119 /process.c
parent41c208d4a463183fddca250026e5f1cd759d2604 (diff)
downloadruby-982443e6e373f5a3ac22ee495909cb9adffcd08d.tar.gz
Revert "Better cooperation between public/protected/private with attr* and alias_method"
This reverts commit 81739ad4fdfcc86a769056fec352f27c686fba1b.
Diffstat (limited to 'process.c')
-rw-r--r--process.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/process.c b/process.c
index 0b2fdeb840..dee565ede4 100644
--- a/process.c
+++ b/process.c
@@ -2075,11 +2075,12 @@ check_exec_redirect1(VALUE ary, VALUE key, VALUE param)
rb_ary_push(ary, hide_obj(rb_assoc_new(fd, param)));
}
else {
- int i;
+ int i, n=0;
for (i = 0 ; i < RARRAY_LEN(key); i++) {
VALUE v = RARRAY_AREF(key, i);
VALUE fd = check_exec_redirect_fd(v, !NIL_P(param));
rb_ary_push(ary, hide_obj(rb_assoc_new(fd, param)));
+ n++;
}
}
return ary;