aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--abspath.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/abspath.c b/abspath.c
index 57cd644..7cc936b 100644
--- a/abspath.c
+++ b/abspath.c
@@ -18,7 +18,7 @@ libsimple_abspath(const char *path, const char *relto)
while (path[0] == '.' && path[1] == '/')
path = &path[2];
- if (relto) {
+ if (!relto) {
relto_free = libsimple_getcwd();
if (!relto_free)
return NULL;