diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2021-02-13 21:53:20 +0200 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2021-02-13 21:53:20 +0200 |
commit | 09887734833d47e9c2ea1203689a9bc7bccae723 (patch) | |
tree | 24447572cfc7b471e061f190a81f83bef48ab5ed /io.c | |
parent | 6accefb01528b9676d39b430941c5f0319490c6e (diff) | |
parent | 4c82793760b88c55ca18cdbdfb819c3ea98cfa91 (diff) | |
download | egawk-09887734833d47e9c2ea1203689a9bc7bccae723.tar.gz egawk-09887734833d47e9c2ea1203689a9bc7bccae723.tar.bz2 egawk-09887734833d47e9c2ea1203689a9bc7bccae723.zip |
Merge branch 'gawk-5.1-stable'
Diffstat (limited to 'io.c')
-rw-r--r-- | io.c | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -447,7 +447,6 @@ nextfile(IOBUF **curfile, bool skipping) int fd = INVALID_HANDLE; int errcode = 0; IOBUF *iop = *curfile; - long argc; if (skipping) { /* for 'nextfile' call */ errcode = 0; @@ -469,9 +468,7 @@ nextfile(IOBUF **curfile, bool skipping) return 0; } - argc = get_number_si(ARGC_node->var_value); - - for (; i < argc; i++) { + for (; i < get_number_si(ARGC_node->var_value); i++) { tmp = make_number((AWKNUM) i); (void) force_string(tmp); arg = in_array(ARGV_node, tmp); |