summaryrefslogtreecommitdiff
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
commit4fd111f0c131d02187f75793de04e2cbc6fd0be3 (patch)
tree203a9ab23c2e4d4f3a71cd00b3d4af96aabde994
parentc46468d77315475c25d68f30dacfccdf1b08498f (diff)
* 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--ChangeLog4
-rw-r--r--io.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index d4fde5e1cd..476554f977 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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.
diff --git a/io.c b/io.c
index 78c2ef9750..ad896ad139 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);