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 18d651ea8f..8d8bfe172b 100644
--- a/io.c
+++ b/io.c
@@ -2169,6 +2169,7 @@ rb_io_each_byte(VALUE io)
fptr->rbuf_len--;
rb_yield(INT2FIX(*p & 0xff));
p++;
+ errno = 0;
}
rb_io_check_readable(fptr);
READ_CHECK(fptr);