summaryrefslogtreecommitdiff
path: root/io.c
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-12-27 09:07:02 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-12-27 09:07:02 +0000
commitf2502cec8afb9b35a41dcd1cd81348ec4197de46 (patch)
tree1f72e72484ccf8094bca56b4ba7ebc1f07defae2 /io.c
parent97e18cd8abd299c6f299fbe3ac57dcba4403f7bd (diff)
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
Diffstat (limited to 'io.c')
-rw-r--r--io.c1
1 files changed, 0 insertions, 1 deletions
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)