From db594aef549b1376ea80030bd0966ed872eac01e Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Fri, 12 Dec 2014 02:35:14 +0100 Subject: path-util: no need to check whether p is absolute twice --- src/shared/path-util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shared/path-util.c b/src/shared/path-util.c index be03695cf8..b3fe0b8179 100644 --- a/src/shared/path-util.c +++ b/src/shared/path-util.c @@ -129,7 +129,7 @@ char *path_make_absolute_cwd(const char *p) { if (!cwd) return NULL; - return path_make_absolute(p, cwd); + return strjoin(cwd, "/", p, NULL); } int path_make_relative(const char *from_dir, const char *to_path, char **_r) { -- cgit v1.2.3-54-g00ecf