diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-07-28 08:46:04 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-07-28 08:46:04 +0000 |
commit | 49991ff6f85455f57ee9495a082d85c68da7d63c (patch) | |
tree | 3ceeb5dbacf11de8588980ca16d9abbee0b253e8 /io.c | |
parent | fc13dbdcf58e45b0121f8c07629c6a184ef92437 (diff) | |
download | ruby-49991ff6f85455f57ee9495a082d85c68da7d63c.tar.gz |
* io.c (argf_eof): should call next_argv() before testing.
[ruby-core:24561]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24305 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'io.c')
-rw-r--r-- | io.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -8500,6 +8500,7 @@ argf_to_io(VALUE argf) static VALUE argf_eof(VALUE argf) { + next_argv(); if (RTEST(ARGF.current_file)) { if (ARGF.init_p == 0) return Qtrue; next_argv(); |