summaryrefslogtreecommitdiff
path: root/io.c
diff options
context:
space:
mode:
authorshyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-09-04 01:05:10 +0000
committershyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-09-04 01:05:10 +0000
commitcb3a1c5f37c556b3f85298deeed1ed15281c0bc9 (patch)
tree002823c09f67d148aa154e4777b4a5fa3cfdee0d /io.c
parent4ed5e8bb9f9b231fd6a815be664e4fec5e26f09a (diff)
merge revision(s) 24283:24296:
* io.c (argf_eof): go to the next file if called after ARGF.close or ARGF.skip. a patch from Mike Kasick at [ruby-core:24561]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_7@24747 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'io.c')
-rw-r--r--io.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/io.c b/io.c
index 7151041dd9..a5b0ef527a 100644
--- a/io.c
+++ b/io.c
@@ -5546,6 +5546,7 @@ argf_eof()
{
if (current_file) {
if (init_p == 0) return Qtrue;
+ next_argv();
ARGF_FORWARD(0, 0);
if (rb_io_eof(current_file)) {
return Qtrue;