aboutsummaryrefslogtreecommitdiffstats
path: root/io.c
diff options
context:
space:
mode:
Diffstat (limited to 'io.c')
-rw-r--r--io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/io.c b/io.c
index 834105031d..eafec788e5 100644
--- a/io.c
+++ b/io.c
@@ -6829,7 +6829,6 @@ argf_next_argv(VALUE argf)
}
if (ARGF.next_p == 1) {
- ARGF.next_p = 0;
retry:
if (RARRAY_LEN(ARGF.argv) > 0) {
ARGF.filename = rb_ary_shift(ARGF.argv);
@@ -6933,6 +6932,7 @@ argf_next_argv(VALUE argf)
fptr->encs = ARGF.encs;
clear_codeconv(fptr);
}
+ ARGF.next_p = 0;
}
else {
ARGF.next_p = 1;