summaryrefslogtreecommitdiffstats
path: root/io.c
diff options
context:
space:
mode:
authoreban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-04-11 10:11:53 +0000
committereban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-04-11 10:11:53 +0000
commit0f3122adfbd2509fe5398a554742823c8a558e43 (patch)
tree11b9668991408f08b11e9221e03f59ea631669de /io.c
parented2ef0f04d8867dfa09818b3bede4f280f8ea3ad (diff)
downloadruby-0f3122adfbd2509fe5398a554742823c8a558e43.tar.gz
ruby-0f3122adfbd2509fe5398a554742823c8a558e43.tar.xz
ruby-0f3122adfbd2509fe5398a554742823c8a558e43.zip
* io.c (remain_size): IO#read returns "" if file.size == 0.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2365 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'io.c')
-rw-r--r--io.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/io.c b/io.c
index 8057542f9..da93d4525 100644
--- a/io.c
+++ b/io.c
@@ -625,9 +625,6 @@ remain_size(fptr)
{
off_t pos;
- if (st.st_size == 0) {
- return 1; /* force EOF */
- }
pos = ftello(fptr->f);
if (st.st_size > pos && pos >= 0) {
siz = st.st_size - pos + 1;