diff options
author | Mattias Andrée <maandree@kth.se> | 2024-07-01 19:49:10 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2024-07-01 19:49:10 +0200 |
commit | 84b6dbef3adccc3eb588afb5d48d9c4fc0c2a3e7 (patch) | |
tree | ab0a6d2ba31a56b01693bf6fe9310d538725d28e | |
parent | m (diff) | |
download | libsimple-84b6dbef3adccc3eb588afb5d48d9c4fc0c2a3e7.tar.gz libsimple-84b6dbef3adccc3eb588afb5d48d9c4fc0c2a3e7.tar.bz2 libsimple-84b6dbef3adccc3eb588afb5d48d9c4fc0c2a3e7.tar.xz |
Fix libsimple_abspath
Signed-off-by: Mattias Andrée <maandree@kth.se>
-rw-r--r-- | abspath.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |