summaryrefslogtreecommitdiff
path: root/io.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>1999-12-14 06:50:43 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>1999-12-14 06:50:43 +0000
commitd6657f1c07ed1fcc2e39d0a144d17a9c19c46769 (patch)
tree5c41783e5819b5195051f94b8f4e1df5493bd12e /io.c
parentea14c6e09a5fc236744ff0a5b51f30ffd7a28241 (diff)
19991214
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_4@587 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'io.c')
-rw-r--r--io.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/io.c b/io.c
index 9d098b331a..60909af7a3 100644
--- a/io.c
+++ b/io.c
@@ -3070,6 +3070,8 @@ argf_eof()
{
if (init_p == 0 && !next_argv())
return Qtrue;
+ if (next_p == -1)
+ return Qtrue;
if (TYPE(current_file) != T_FILE) {
return argf_forward();
}