diff options
author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-02-20 04:42:49 +0000 |
---|---|---|
committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-02-20 04:42:49 +0000 |
commit | 4fd111f0c131d02187f75793de04e2cbc6fd0be3 (patch) | |
tree | 203a9ab23c2e4d4f3a71cd00b3d4af96aabde994 | |
parent | c46468d77315475c25d68f30dacfccdf1b08498f (diff) | |
download | ruby-4fd111f0c131d02187f75793de04e2cbc6fd0be3.tar.gz |
* io.c (rb_io_close): return Qnil.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2103 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | io.c | 2 |
2 files changed, 5 insertions, 1 deletions
@@ -1,3 +1,7 @@ +Wed Feb 20 13:41:35 2002 Usaku Nakamura <usa@ruby-lang.org> + + * io.c (rb_io_close): return Qnil. + Wed Feb 20 12:41:59 2002 Yukihiro Matsumoto <matz@ruby-lang.org> * hash.c (rb_any_cmp): should handle Qundef in keys. @@ -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); |