summaryrefslogtreecommitdiff
path: root/io.c
diff options
context:
space:
mode:
authorwyhaines <wyhaines@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-01-27 14:36:38 +0000
committerwyhaines <wyhaines@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-01-27 14:36:38 +0000
commite341e9b035294d1acf5347620fbd2fcb9245d382 (patch)
tree3ffe4864ddfcd053b876b924ae30a5b9adb38729 /io.c
parent74eb575c8d06ea64efb6c817e8cbed976e5e863a (diff)
Backport #1818 [ruby-core:24561]; (argf_eof): go to the next file if called after ARGF.close or ARGF.skip.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@26451 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 257a0ea07e..4d930a02cc 100644
--- a/io.c
+++ b/io.c
@@ -5430,6 +5430,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;