aboutsummaryrefslogtreecommitdiffstats
path: root/abspath.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2024-07-01 19:49:10 +0200
committerMattias Andrée <maandree@kth.se>2024-07-01 19:49:10 +0200
commit84b6dbef3adccc3eb588afb5d48d9c4fc0c2a3e7 (patch)
treeab0a6d2ba31a56b01693bf6fe9310d538725d28e /abspath.c
parentm (diff)
downloadlibsimple-84b6dbef3adccc3eb588afb5d48d9c4fc0c2a3e7.tar.gz
libsimple-84b6dbef3adccc3eb588afb5d48d9c4fc0c2a3e7.tar.bz2
libsimple-84b6dbef3adccc3eb588afb5d48d9c4fc0c2a3e7.tar.xz
Fix libsimple_abspath
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-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;