diff options
author | Radosław Bułat <radek.bulat@gmail.com> | 2020-11-09 11:25:11 +0100 |
---|---|---|
committer | Yusuke Endoh <mame@ruby-lang.org> | 2020-12-19 00:04:19 +0900 |
commit | ed5c09f38459fe4a0f94c9e24358b21ff5f151c6 (patch) | |
tree | efdf4e47a287bc95e70448efff99486e97509fec /process.c | |
parent | c71934f8a50746c9cd01a86375b178d5c7823259 (diff) |
Remove unused variable
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/3934
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; |