mirror of
https://github.com/systemd/systemd.git
synced 2026-08-04 23:20:32 +00:00
path-util: no need to check whether p is absolute twice
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user