aboutsummaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'util.c')
-rw-r--r--util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util.c b/util.c
index 7abded2..c611da4 100644
--- a/util.c
+++ b/util.c
@@ -274,7 +274,7 @@ char* r_readdir(r_dir_t *rdir)
while (true) {
if (rdir->dir != NULL && (dentry = readdir(rdir->dir)) != NULL) {
- if (STREQ(dentry->d_name, ".") || STREQ(dentry->d_name, ".."))
+ if (dentry->d_name[0] == '.')
continue;
len = strlen(rdir->name) + strlen(dentry->d_name) + 2;