about summary refs log tree commit diff
path: root/libio/rewind.c
diff options
context:
space:
mode:
Diffstat (limited to 'libio/rewind.c')
-rw-r--r--libio/rewind.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libio/rewind.c b/libio/rewind.c
index fb6afbc77a..a9ea36edb6 100644
--- a/libio/rewind.c
+++ b/libio/rewind.c
@@ -34,6 +34,7 @@ rewind (fp)
   _IO_cleanup_region_start ((void (*) __P ((void *))) _IO_funlockfile, fp);
   _IO_flockfile (fp);
   _IO_rewind (fp);
+  _IO_clearerr (fp);
   _IO_funlockfile (fp);
   _IO_cleanup_region_end (0);
 }