diff options
author | Yusuke Endoh <mame@ruby-lang.org> | 2020-12-18 14:12:42 +0900 |
---|---|---|
committer | Yusuke Endoh <mame@ruby-lang.org> | 2020-12-18 16:08:55 +0900 |
commit | 982443e6e373f5a3ac22ee495909cb9adffcd08d (patch) | |
tree | 111f10669bb784da3fec5721749aef055c2cb119 /process.c | |
parent | 41c208d4a463183fddca250026e5f1cd759d2604 (diff) |
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.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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; |