From a601b74d31ca086de38441d316a3dee24c866305 Mon Sep 17 00:00:00 2001 From: Paul Pluzhnikov Date: Sat, 8 Aug 2015 16:27:58 -0700 Subject: In preparation for fixing BZ#16734, fix failure in misc/tst-error1-mem when _G_HAVE_MMAP is turned off. --- libio/genops.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libio/genops.c') 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); -- cgit v1.1