From 982443e6e373f5a3ac22ee495909cb9adffcd08d Mon Sep 17 00:00:00 2001 From: Yusuke Endoh Date: Fri, 18 Dec 2020 14:12:42 +0900 Subject: Revert "Better cooperation between public/protected/private with attr* and alias_method" This reverts commit 81739ad4fdfcc86a769056fec352f27c686fba1b. --- process.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'process.c') 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; -- cgit v1.2.3