diff options
author | Lennart Poettering <lennart@poettering.net> | 2021-07-29 21:13:03 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2021-07-29 21:13:03 +0200 |
commit | 0ddd5e547e3d4c701a506d5c62cb6547e2d72721 (patch) | |
tree | 13509cda596192b7b18ec695d41f4210ad423764 /src/xdg-autostart-generator/xdg-autostart-service.c | |
parent | alloc-util: drop double eval from free_and_replace() (diff) | |
download | systemd-0ddd5e547e3d4c701a506d5c62cb6547e2d72721.tar.xz systemd-0ddd5e547e3d4c701a506d5c62cb6547e2d72721.zip |
xdg-autostart-service: rely on the new double-eval-free free_and_replace()
These semi-reverts 2744c7bb0176dc6b86a69acd4c449ea9e269e097
Diffstat (limited to '')
-rw-r--r-- | src/xdg-autostart-generator/xdg-autostart-service.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/xdg-autostart-generator/xdg-autostart-service.c b/src/xdg-autostart-generator/xdg-autostart-service.c index f21d3f54b1..501cdca0b6 100644 --- a/src/xdg-autostart-generator/xdg-autostart-service.c +++ b/src/xdg-autostart-generator/xdg-autostart-service.c @@ -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]); |