summaryrefslogtreecommitdiffstats
path: root/fish/destpaths.c
diff options
context:
space:
mode:
Diffstat (limited to 'fish/destpaths.c')
-rw-r--r--fish/destpaths.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fish/destpaths.c b/fish/destpaths.c
index 9a3da82b..02e9f223 100644
--- a/fish/destpaths.c
+++ b/fish/destpaths.c
@@ -168,7 +168,7 @@ complete_dest_paths_generator (const char *text, int state)
if (strcmp (dirents->val[i].name, ".") != 0 &&
strcmp (dirents->val[i].name, "..") != 0) {
- if (strcmp (dir, "/") == 0)
+ if (STREQ (dir, "/"))
err = asprintf (&p, "/%s", dirents->val[i].name);
else
err = asprintf (&p, "%s/%s", dir, dirents->val[i].name);