summaryrefslogtreecommitdiff
path: root/io.c
diff options
context:
space:
mode:
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 bd7d91957ab..3d6dac5c601 100644
--- a/io.c
+++ b/io.c
@@ -608,7 +608,7 @@ rb_io_gets_internal(argc, argv, io)
VALUE rs;
if (argc == 0) {
- rs = rb_default_rs;
+ rs = rb_rs;
}
else {
rb_scan_args(argc, argv, "1", &rs);