aboutsummaryrefslogtreecommitdiffstats
path: root/io.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-12-27 07:39:29 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-12-27 07:39:29 +0000
commitdcc8d4f3d9aa826611e4be9ab5d74c29e8ea04f0 (patch)
tree01666e2c997f9125349aabe8f121aeb824973b2c /io.c
parent059b67241667e0232da09ffb0d13fbe44a786ab2 (diff)
downloadruby-dcc8d4f3d9aa826611e4be9ab5d74c29e8ea04f0.tar.gz
io.c: use io_close to close ARGF
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57204 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 37b57e019b..4a205e533f 100644
--- a/io.c
+++ b/io.c
@@ -7986,7 +7986,7 @@ argf_close(VALUE argf)
if (RB_TYPE_P(file, T_FILE)) {
rb_io_set_write_io(file, Qnil);
}
- rb_funcall3(file, rb_intern("close"), 0, 0);
+ io_close(file);
ARGF.init_p = -1;
}