From 84b6dbef3adccc3eb588afb5d48d9c4fc0c2a3e7 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Mon, 1 Jul 2024 19:49:10 +0200 Subject: Fix libsimple_abspath MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- abspath.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3-70-g09d2