diff options
Diffstat (limited to 'libio/genops.c')
-rw-r--r-- | libio/genops.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libio/genops.c b/libio/genops.c index 0f5e800..e13b3d1 100644 --- a/libio/genops.c +++ b/libio/genops.c @@ -977,6 +977,9 @@ _IO_unbuffer_all (void) _IO_SETBUF (fp, NULL, 0); + if (fp->_mode > 0) + _IO_wsetb (fp, NULL, NULL, 0); + #ifdef _IO_MTSAFE_IO if (cnt < MAXTRIES && fp->_lock != NULL) _IO_lock_unlock (*fp->_lock); |