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 + + * 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 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);