mirror of
https://github.com/systemd/systemd.git
synced 2024-11-01 09:21:26 +03:00
util-lib: kill duplicate slashes in lookup paths
Since we're munging the array anyway, we can make the output a bit nicer too.
This commit is contained in:
parent
ca4adeb791
commit
32a8f700a4
@ -223,8 +223,8 @@ int path_strv_make_absolute_cwd(char **l) {
|
||||
if (r < 0)
|
||||
return r;
|
||||
|
||||
free(*s);
|
||||
*s = t;
|
||||
path_kill_slashes(t);
|
||||
free_and_replace(*s, t);
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user