mirror of
https://github.com/systemd/systemd.git
synced 2024-11-01 09:21:26 +03:00
xdg-autostart-service: rely on the new double-eval-free free_and_replace()
These semi-reverts 2744c7bb01
This commit is contained in:
parent
7ecc424fbe
commit
0ddd5e547e
@ -416,8 +416,7 @@ int xdg_autostart_format_exec_start(
|
||||
if (!escaped)
|
||||
return log_oom();
|
||||
|
||||
free_and_replace(exec_split[n], escaped);
|
||||
n++;
|
||||
free_and_replace(exec_split[n++], escaped);
|
||||
continue;
|
||||
}
|
||||
|
||||
@ -457,8 +456,7 @@ int xdg_autostart_format_exec_start(
|
||||
if (!quoted)
|
||||
return log_oom();
|
||||
|
||||
free_and_replace(exec_split[n], quoted);
|
||||
n++;
|
||||
free_and_replace(exec_split[n++], quoted);
|
||||
}
|
||||
for (; exec_split[n]; n++)
|
||||
exec_split[n] = mfree(exec_split[n]);
|
||||
|
Loading…
Reference in New Issue
Block a user