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:
Zbigniew Jędrzejewski-Szmek
2017-12-06 10:18:27 +01:00
parent ca4adeb791
commit 32a8f700a4
+2 -2
View File
@@ -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;