summaryrefslogtreecommitdiff
path: root/process.c
diff options
context:
space:
mode:
authorRadosław Bułat <radek.bulat@gmail.com>2020-11-09 11:25:11 +0100
committerYusuke Endoh <mame@ruby-lang.org>2020-12-19 00:04:19 +0900
commited5c09f38459fe4a0f94c9e24358b21ff5f151c6 (patch)
treeefdf4e47a287bc95e70448efff99486e97509fec /process.c
parentc71934f8a50746c9cd01a86375b178d5c7823259 (diff)
Remove unused variable
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/3934
Diffstat (limited to 'process.c')
-rw-r--r--process.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/process.c b/process.c
index dee565ede4..0b2fdeb840 100644
--- a/process.c
+++ b/process.c
@@ -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;