From d6e2d211afaf7bc3d08a6f833fe8e20f3aa3e3f6 Mon Sep 17 00:00:00 2001 From: matz Date: Sat, 28 Mar 1998 11:05:46 +0000 Subject: 1.1b9_05 patches git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/v1_1r@144 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- io.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'io.c') diff --git a/io.c b/io.c index 9bda7a8d73..7e8310a714 100644 --- a/io.c +++ b/io.c @@ -739,8 +739,8 @@ io_closed(io) { OpenFile *fptr; - GetOpenFile(io, fptr); - return fptr->f?FALSE:TRUE; + fptr = RFILE(io)->fptr; + return (fptr->f || fptr->f2)?FALSE:TRUE; } static VALUE -- cgit v1.2.3