diff options
-rw-r--r-- | src/librc.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/librc.c b/src/librc.c index 3138efc3..43809e2a 100644 --- a/src/librc.c +++ b/src/librc.c @@ -54,8 +54,7 @@ static char **ls_dir (const char *dir, int options) if ((dp = opendir (dir)) == NULL) return (NULL); - errno = 0; - while (((d = readdir (dp)) != NULL) && errno == 0) { + while (((d = readdir (dp)) != NULL)) { if (d->d_name[0] != '.') { if (options & LS_INITD) { int l = strlen (d->d_name); |