summaryrefslogtreecommitdiff
path: root/io.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>1998-03-28 11:05:46 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>1998-03-28 11:05:46 +0000
commitd6e2d211afaf7bc3d08a6f833fe8e20f3aa3e3f6 (patch)
tree32d67c633f166665552156bf01fa698be7535336 /io.c
parent7253910df83611f0c2aa4f6c5a5718680b9aea60 (diff)
1.1b9_05 patches
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/v1_1r@144 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'io.c')
-rw-r--r--io.c4
1 files changed, 2 insertions, 2 deletions
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