1
0
mirror of https://github.com/systemd/systemd.git synced 2025-03-08 08:58:27 +03:00

path-util: no need to check whether p is absolute twice

This commit is contained in:
Lennart Poettering 2014-12-12 02:35:14 +01:00
parent a2e22d07c6
commit db594aef54

View File

@ -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) {