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:
parent
a2a7b77260
commit
f8abe13f32
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user