diff options
-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); |