summaryrefslogtreecommitdiff
path: root/io.c
diff options
context:
space:
mode:
authoryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-01-16 12:35:27 +0000
committeryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-01-16 12:35:27 +0000
commit849e45dee80662c4192cbe9e6ce1161ac57c8edd (patch)
tree23e9cc760c78824cb486a0ecf875ea8c933258a5 /io.c
parent161fde4a43ba6f06abec13b28c82336f467eb6cf (diff)
merges r30536 from trunk into ruby_1_9_2.
-- * 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/branches/ruby_1_9_2@30574 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 099ad2c756..bd5494696b 100644
--- a/io.c
+++ b/io.c
@@ -6778,7 +6778,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);
@@ -6867,6 +6866,7 @@ argf_next_argv(VALUE argf)
fptr->encs = ARGF.encs;
clear_codeconv(fptr);
}
+ ARGF.next_p = 0;
}
else {
ARGF.next_p = 1;