summaryrefslogtreecommitdiff
path: root/io.c
diff options
context:
space:
mode:
Diffstat (limited to 'io.c')
-rw-r--r--io.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/io.c b/io.c
index ec16438ffd..f6ea3a1154 100644
--- a/io.c
+++ b/io.c
@@ -741,6 +741,7 @@ rb_io_eof(io)
ungetc(ch, fptr->f);
return Qfalse;
}
+ rb_io_check_closed(fptr);
clearerr(fptr->f);
return Qtrue;
}