summaryrefslogtreecommitdiff
path: root/io.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>1999-05-12 05:27:35 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>1999-05-12 05:27:35 +0000
commitc6ac6cb4542b845eb4c18a9e80e15f8deab4f54a (patch)
treef39e1fd249686fc7a6946d88c65e944ccdc59a43 /io.c
parent039a94478ee4f8b3154e99812223614e03ac186c (diff)
$/, Struct subclassing
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_3@465 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 aacccd4e13..dc7ea4221c 100644
--- a/io.c
+++ b/io.c
@@ -2182,7 +2182,7 @@ rb_f_gets_internal(argc, argv)
retry:
if (!next_argv()) return Qnil;
- if (rb_rs == rb_default_rs) {
+ if (argc == 0 && rb_rs == rb_default_rs) {
line = rb_io_gets(file);
}
else {