From ddd9d609dca9844e1d62ef4dd58f5d62c9bebc0b Mon Sep 17 00:00:00 2001 From: matz Date: Tue, 18 Feb 2003 14:30:17 +0000 Subject: * 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 --- io.c | 1 + 1 file changed, 1 insertion(+) (limited to 'io.c') 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; } -- cgit v1.2.3