summaryrefslogtreecommitdiff
path: root/io.c
diff options
context:
space:
mode:
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;
}