aboutsummaryrefslogtreecommitdiffstats
path: root/util.c
diff options
context:
space:
mode:
authorBert Münnich <ber.t@gmx.com>2011-09-26 21:53:52 +0200
committerBert Münnich <ber.t@gmx.com>2011-09-26 21:53:52 +0200
commitd721d8453e6c0ff7112e8228eb58aa438d1f7f1a (patch)
tree449e393e7bb614b150f4c72b3998ae5ced95e201 /util.c
parentd08408e94250425e677e1ab33d917e05e229faa2 (diff)
downloadnsxiv-d721d8453e6c0ff7112e8228eb58aa438d1f7f1a.tar.zst
Added STREQ macro
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 517e02b..de8dfae 100644
--- a/util.c
+++ b/util.c
@@ -270,7 +270,7 @@ char* r_readdir(r_dir_t *rdir) {
while (1) {
if (rdir->dir && (dentry = readdir(rdir->dir))) {
- if (!strcmp(dentry->d_name, ".") || !strcmp(dentry->d_name, ".."))
+ if (STREQ(dentry->d_name, ".") || STREQ(dentry->d_name, ".."))
continue;
len = strlen(rdir->name) + strlen(dentry->d_name) + 2;