aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/posix/rewinddir.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/posix/rewinddir.c')
-rw-r--r--sysdeps/posix/rewinddir.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sysdeps/posix/rewinddir.c b/sysdeps/posix/rewinddir.c
index 2935a8e5a0..d4991ad43a 100644
--- a/sysdeps/posix/rewinddir.c
+++ b/sysdeps/posix/rewinddir.c
@@ -33,6 +33,7 @@ rewinddir (dirp)
dirp->filepos = 0;
dirp->offset = 0;
dirp->size = 0;
+ dirp->errcode = 0;
#ifndef NOT_IN_libc
__libc_lock_unlock (dirp->lock);
#endif