diff options
author | eban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-04-11 10:11:53 +0000 |
---|---|---|
committer | eban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-04-11 10:11:53 +0000 |
commit | 65a269376f7262212512f29f5ace7d8702b3edf4 (patch) | |
tree | 11b9668991408f08b11e9221e03f59ea631669de /io.c | |
parent | 2628f376c9eba77fa7c214bd1bfd68a34dc524da (diff) | |
download | ruby-65a269376f7262212512f29f5ace7d8702b3edf4.tar.gz |
* io.c (remain_size): IO#read returns "" if file.size == 0.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2365 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'io.c')
-rw-r--r-- | io.c | 3 |
1 files changed, 0 insertions, 3 deletions
@@ -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; |