1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-01-11 05:17:44 +03:00

escape: use strextend()

This commit is contained in:
Yu Watanabe 2021-05-20 14:22:58 +09:00
parent a2a7b77260
commit f8abe13f32

View File

@ -188,13 +188,8 @@ static int run(int argc, char *argv[]) {
free_and_replace(e, x);
} else if (arg_suffix) {
char *x;
x = strjoin(e, ".", arg_suffix);
if (!x)
if (!strextend(&e, ".", arg_suffix))
return log_oom();
free_and_replace(e, x);
}
break;