summaryrefslogtreecommitdiffstats
path: root/libc/misc/dirent
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2001-06-26 04:48:15 +0000
committerEric Andersen <andersen@codepoet.org>2001-06-26 04:48:15 +0000
commit7064bb231f28745761fd211c310de87ef6583d08 (patch)
tree80102103f6b58e6255594e62d3acd8576c432b26 /libc/misc/dirent
parentee8108569d6e41803ede01a1b2587c64308b29ff (diff)
downloaduClibc-alpine-7064bb231f28745761fd211c310de87ef6583d08.tar.bz2
uClibc-alpine-7064bb231f28745761fd211c310de87ef6583d08.tar.xz
Looks like we lost clearing errno
Diffstat (limited to 'libc/misc/dirent')
-rw-r--r--libc/misc/dirent/readdir.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libc/misc/dirent/readdir.c b/libc/misc/dirent/readdir.c
index 81575283d..1568199eb 100644
--- a/libc/misc/dirent/readdir.c
+++ b/libc/misc/dirent/readdir.c
@@ -55,5 +55,7 @@ struct dirent *readdir(DIR * dir)
/* We have to save the next offset here. */
dir->dd_nextoff = de->d_off;
+ __set_errno(0);
+
return de;
}