summaryrefslogtreecommitdiff
path: root/io.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-02-18 14:30:17 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-02-18 14:30:17 +0000
commitddd9d609dca9844e1d62ef4dd58f5d62c9bebc0b (patch)
tree1cdebfa2fe2170d793fd70ece0e7dd9d97d1ede5 /io.c
parentb4f940b76799a3cdcc5a39f34dfadd76e83bbd2f (diff)
* eval.c (rb_call0): should not report uninitialized warning by
attribute reader method. * variable.c (rb_attr_get): new function to get instance variable without uninitialized warning. * io.c (argf_to_io): should prefetch argv. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3504 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 d4baa9f774..2f47e5f818 100644
--- a/io.c
+++ b/io.c
@@ -3698,6 +3698,7 @@ argf_fileno()
static VALUE
argf_to_io()
{
+ next_argv();
return current_file;
}