summaryrefslogtreecommitdiff
path: root/io.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-01-03 02:29:04 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-01-03 02:29:04 +0000
commit2000bde8e7aa2f12dc3b437b5c6a6beb0edc96ec (patch)
tree312a672e62894acc33d4e52d6a477d146f9da433 /io.c
parent499bc93a42acddfd66c029343fe0836d9f3893a2 (diff)
* io.c (fptr_finalize): clear errno first. [ruby-talk:284492]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14858 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
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);