diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-07-26 10:17:39 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-07-26 10:17:39 +0000 |
commit | b7f26835dae3005f1eefbb1700aa711b811fb2fc (patch) | |
tree | 441748b8075458313fb3a1dd4b25b57ca924dfd2 /io.c | |
parent | f9f1581f6d777be9ee2fe8612d77832cd214d1a2 (diff) |
* io.c (argf_eof): go to the next file if called after ARGF.close
or ARGF.skip. [ruby-core:24561]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24284 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'io.c')
-rw-r--r-- | io.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -8502,6 +8502,7 @@ argf_eof(VALUE argf) { if (RTEST(ARGF.current_file)) { if (ARGF.init_p == 0) return Qtrue; + next_argv(); ARGF_FORWARD(0, 0); if (rb_io_eof(ARGF.current_file)) { return Qtrue; |