From f2502cec8afb9b35a41dcd1cd81348ec4197de46 Mon Sep 17 00:00:00 2001 From: usa Date: Tue, 27 Dec 2016 09:07:02 +0000 Subject: [PATCH] revert a part of r57199 * io.c (io_fillbuf): revert a part of r57199 because it broke IO#getch. see also [Bug #13076] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57206 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- io.c | 1 - 1 file changed, 1 deletion(-) diff --git a/io.c b/io.c index 4a205e533f..2731bb829f 100644 --- a/io.c +++ b/io.c @@ -1775,7 +1775,6 @@ io_fillbuf(rb_io_t *fptr) rb_syserr_fail_path(e, path); } } - if (r > 0) READ_CHECK(fptr); fptr->rbuf.off = 0; fptr->rbuf.len = (int)r; /* r should be <= rbuf_capa */ if (r == 0)