mirror of
https://github.com/systemd/systemd.git
synced 2025-03-09 12:58:26 +03:00
path-util: no need to check whether p is absolute twice
This commit is contained in:
parent
a2e22d07c6
commit
db594aef54
@ -129,7 +129,7 @@ char *path_make_absolute_cwd(const char *p) {
|
|||||||
if (!cwd)
|
if (!cwd)
|
||||||
return NULL;
|
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) {
|
int path_make_relative(const char *from_dir, const char *to_path, char **_r) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user