summaryrefslogtreecommitdiff
path: root/io.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-01-13 22:30:50 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-01-13 22:30:50 +0000
commit7909af18edf02a924c8a9ace9e657c9651a93c76 (patch)
treee15fd9de3e79c63567699752a517ce74b47f0703 /io.c
parent6ac9fea36f3d41862702ad232749560fe26a4c61 (diff)
* io.c (argf_next_argv): go advance when the next file cannot be
read. [ruby-core:34446] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30536 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
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;