summaryrefslogtreecommitdiff
path: root/io.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-10-27 06:55:06 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-10-27 06:55:06 +0000
commit782f3bd3f9d89130e7b8486e82e2f7f270833013 (patch)
tree88dfee59eac2e8a0e26a18f71e4333bfe2637820 /io.c
parent1a863754faed73a0a9ff1a4ce03bf022e94788c1 (diff)
* io.c (argf_init): initial value of $. should be 0.
see [ruby-dev:36937]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19964 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'io.c')
-rw-r--r--io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/io.c b/io.c
index ff1c74a3e3..6e76f23c8b 100644
--- a/io.c
+++ b/io.c
@@ -5821,7 +5821,7 @@ argf_init(struct argf *p, VALUE v)
{
p->filename = Qnil;
p->current_file = Qnil;
- p->lineno = Qnil;
+ p->lineno = INT2FIX(0);
p->argv = v;
}