Permalink
Browse files

path-util: make use of path_join() in path_make_absolute_cwd()

  • Loading branch information...
fbuihuu committed Jul 16, 2018
1 parent 9f36a8f commit 7f6240fab157fe0374ecd6efbee5b8495cc95b5f
Showing with 1 addition and 4 deletions.
  1. +1 −4 src/basic/path-util.c
@@ -110,10 +110,7 @@ int path_make_absolute_cwd(const char *p, char **ret) {
if (r < 0)
return r;

if (endswith(cwd, "/"))
c = strjoin(cwd, p);
else
c = strjoin(cwd, "/", p);
c = path_join(NULL, cwd, p);
}
if (!c)
return -ENOMEM;

0 comments on commit 7f6240f

Please sign in to comment.