summaryrefslogtreecommitdiffstats
path: root/io.c
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-11-28 17:02:14 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-11-28 17:02:14 +0000
commite4bd9388493d480b446591a2154f4fa4974f0a4d (patch)
treea7d59cd133a2b4caa01d25481e0906b1c5787501 /io.c
parent1832751683251a82c7cc9efa4915f85d3943c9f6 (diff)
downloadruby-e4bd9388493d480b446591a2154f4fa4974f0a4d.tar.gz
ruby-e4bd9388493d480b446591a2154f4fa4974f0a4d.tar.xz
ruby-e4bd9388493d480b446591a2154f4fa4974f0a4d.zip
don't use READ_DATA_PENDING in previous change
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@7406 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'io.c')
-rw-r--r--io.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/io.c b/io.c
index cc1b58395..1cce09822 100644
--- a/io.c
+++ b/io.c
@@ -251,8 +251,7 @@ rb_io_check_writable(fptr)
if (!(fptr->mode & FMODE_WRITABLE)) {
rb_raise(rb_eIOError, "not opened for writing");
}
- if ((fptr->mode & FMODE_RBUF) && !feof(fptr->f) && !fptr->f2 &&
- READ_DATA_PENDING(fptr->f)) {
+ if ((fptr->mode & FMODE_RBUF) && !feof(fptr->f) && !fptr->f2) {
io_seek(fptr, 0, SEEK_CUR);
}
if (!fptr->f2) {