diff options
author | Radosław Bułat <radek.bulat@gmail.com> | 2020-11-09 11:25:11 +0100 |
---|---|---|
committer | Marc-André Lafortune <github@marc-andre.ca> | 2020-12-17 12:46:02 -0500 |
commit | 81739ad4fdfcc86a769056fec352f27c686fba1b (patch) | |
tree | e526231281907efac92ada6c77671952b5cf8b1c /process.c | |
parent | f7a6b460d5cf3665d3cc682fec34f989b639e7a6 (diff) |
Better cooperation between public/protected/private with attr* and alias_method
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/3757
Diffstat (limited to 'process.c')
-rw-r--r-- | process.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -2075,12 +2075,11 @@ check_exec_redirect1(VALUE ary, VALUE key, VALUE param) rb_ary_push(ary, hide_obj(rb_assoc_new(fd, param))); } else { - int i, n=0; + int i; 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; |