diff --git a/src/basic/path-util.c b/src/basic/path-util.c index ab4778d4edc..b877bdc1cbe 100644 --- a/src/basic/path-util.c +++ b/src/basic/path-util.c @@ -81,7 +81,7 @@ char *path_make_absolute(const char *p, const char *prefix) { /* Makes every item in the list an absolute path by prepending * the prefix, if specified and necessary */ - if (path_is_absolute(p) || !prefix) + if (path_is_absolute(p) || isempty(prefix)) return strdup(p); return strjoin(prefix, "/", p);