diff options
author | Lennart Poettering <lennart@poettering.net> | 2014-12-12 02:35:14 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2014-12-12 13:35:32 +0100 |
commit | db594aef549b1376ea80030bd0966ed872eac01e (patch) | |
tree | 677a25a680e3492fb1303e2a4373d2178ae59d35 | |
parent | a2e22d07c65aa7c1174a381589ad76841a04d100 (diff) |
path-util: no need to check whether p is absolute twice
-rw-r--r-- | src/shared/path-util.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |