Skip to content

Commit

Permalink
path-util: make use of path_join() in path_make_absolute_cwd()
Browse files Browse the repository at this point in the history
  • Loading branch information
fbuihuu committed Jul 30, 2018
1 parent 9f36a8f commit 7f6240f
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/basic/path-util.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 7f6240f

Please sign in to comment.