summaryrefslogtreecommitdiff
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
commit65a269376f7262212512f29f5ace7d8702b3edf4 (patch)
tree11b9668991408f08b11e9221e03f59ea631669de /io.c
parent2628f376c9eba77fa7c214bd1bfd68a34dc524da (diff)
* 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.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/io.c b/io.c
index 8057542f92..da93d45253 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;