aboutsummaryrefslogtreecommitdiff
path: root/libio/genops.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2000-08-29 22:41:42 +0000
committerUlrich Drepper <drepper@redhat.com>2000-08-29 22:41:42 +0000
commit076bfcf612a1f774b214e335184d010b60bfad40 (patch)
tree1b165613e8f1bae3cc7ccd96407a88378283fbec /libio/genops.c
parentc7c3b0e907efac218b329ebbe3fc7432ec4415c5 (diff)
downloadglibc-076bfcf612a1f774b214e335184d010b60bfad40.tar
glibc-076bfcf612a1f774b214e335184d010b60bfad40.tar.gz
glibc-076bfcf612a1f774b214e335184d010b60bfad40.tar.bz2
glibc-076bfcf612a1f774b214e335184d010b60bfad40.zip
Update.
2000-08-29 Ulrich Drepper <drepper@redhat.com> * libio/iogetline.c: Set mode before the loop in case n==0. * libio/iogetwline.c: Likewise. 2000-08-29 H.J. Lu <hjl@gnu.org> * libio/fileops.c (new_do_write): Check fp->_mode <= 0 instead of fp->_mode < 0. (_IO_new_file_overflow): Likewise. * libio/genops.c (_IO_flush_all): Likewise. * libio/ioftell.c (_IO_ftell): Likewise.
Diffstat (limited to 'libio/genops.c')
-rw-r--r--libio/genops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libio/genops.c b/libio/genops.c
index b1ae5afc50..768996f8b4 100644
--- a/libio/genops.c
+++ b/libio/genops.c
@@ -754,7 +754,7 @@ _IO_flush_all ()
int result = 0;
struct _IO_FILE *fp;
for (fp = (_IO_FILE *) _IO_list_all; fp; fp = fp->_chain)
- if (((fp->_mode < 0 && fp->_IO_write_ptr > fp->_IO_write_base)
+ if (((fp->_mode <= 0 && fp->_IO_write_ptr > fp->_IO_write_base)
#if defined _LIBC || defined _GLIBCPP_USE_WCHAR_T
|| (fp->_vtable_offset == 0
&& fp->_mode > 0 && (fp->_wide_data->_IO_write_ptr