aboutsummaryrefslogtreecommitdiff
path: root/libio/wfileops.c
diff options
context:
space:
mode:
Diffstat (limited to 'libio/wfileops.c')
-rw-r--r--libio/wfileops.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libio/wfileops.c b/libio/wfileops.c
index f3f8bf2..3489b36 100644
--- a/libio/wfileops.c
+++ b/libio/wfileops.c
@@ -120,6 +120,7 @@ _IO_wfile_underflow (fp)
if (fp->_flags & _IO_NO_READS)
{
+ fp->_flags |= _IO_ERR_SEEN;
__set_errno (EBADF);
return WEOF;
}