summaryrefslogtreecommitdiff
path: root/io.c
diff options
context:
space:
mode:
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