summaryrefslogtreecommitdiffstats
path: root/openbsd-compat
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--openbsd-compat/realpath.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/openbsd-compat/realpath.c b/openbsd-compat/realpath.c
index 77da14e7c..922305ffd 100644
--- a/openbsd-compat/realpath.c
+++ b/openbsd-compat/realpath.c
@@ -150,7 +150,7 @@ loop:
serrno = ENAMETOOLONG;
goto err1;
}
- if (needslash == 0)
+ if (needslash)
strlcat(resolved, "/", MAXPATHLEN);
strlcat(resolved, wbuf, MAXPATHLEN);
}