summaryrefslogtreecommitdiffstats
path: root/io.c
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-02-20 04:42:49 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-02-20 04:42:49 +0000
commitf700a68ac2de2f4f17c7591b90da60e07ce9b539 (patch)
tree203a9ab23c2e4d4f3a71cd00b3d4af96aabde994 /io.c
parent7caab4d2c3ff727199123f71c56ccaff812a5f8c (diff)
downloadruby-f700a68ac2de2f4f17c7591b90da60e07ce9b539.tar.gz
ruby-f700a68ac2de2f4f17c7591b90da60e07ce9b539.tar.xz
ruby-f700a68ac2de2f4f17c7591b90da60e07ce9b539.zip
* io.c (rb_io_close): return Qnil.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2103 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 78c2ef975..ad896ad13 100644
--- a/io.c
+++ b/io.c
@@ -1166,7 +1166,7 @@ rb_io_close(io)
fptr = RFILE(io)->fptr;
if (!fptr) return Qnil;
- if (!fptr->f && !fptr->f2) return;
+ if (!fptr->f && !fptr->f2) return Qnil;
fd = fileno(fptr->f);
rb_io_fptr_cleanup(fptr, Qfalse);