From f700a68ac2de2f4f17c7591b90da60e07ce9b539 Mon Sep 17 00:00:00 2001 From: usa Date: Wed, 20 Feb 2002 04:42:49 +0000 Subject: * io.c (rb_io_close): return Qnil. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2103 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 4 ++++ io.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index d4fde5e1c..476554f97 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Wed Feb 20 13:41:35 2002 Usaku Nakamura + + * io.c (rb_io_close): return Qnil. + Wed Feb 20 12:41:59 2002 Yukihiro Matsumoto * hash.c (rb_any_cmp): should handle Qundef in keys. 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); -- cgit