summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2014-12-17 14:47:29 -0500
committerAnthony G. Basile <blueness@gentoo.org>2014-12-17 14:47:29 -0500
commit6b16cd5fedbcb4ca5162ee263ae9a16533390465 (patch)
tree81b792893e8b1be787bdddfe28cad30057a5a9d0
parentc93ec252df0a0a0bb499031f92b240063e17fc12 (diff)
path-util: no need to check whether p is absolute twice
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
-rw-r--r--src/shared/path-util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/path-util.c b/src/shared/path-util.c
index ccd5c7ecc6..5dfa8266ec 100644
--- a/src/shared/path-util.c
+++ b/src/shared/path-util.c
@@ -112,7 +112,7 @@ char *path_make_absolute_cwd(const char *p) {
if (!cwd)
return NULL;
- return path_make_absolute(p, cwd);
+ return strjoin(cwd, "/", p, NULL);
}
char **path_strv_resolve(char **l, const char *prefix) {