summaryrefslogtreecommitdiffstats
path: root/src/systemctl/systemctl.c
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2021-02-16 14:19:36 +0100
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2021-02-16 17:15:11 +0100
commit36556f6e514095d220d1cdb37697a07f4b6061d3 (patch)
treecedb35f3d3ff65b2fad86b8631515a7800396832 /src/systemctl/systemctl.c
parenttree-wide: reset the cleaned-up variable in cleanup functions (diff)
downloadsystemd-36556f6e514095d220d1cdb37697a07f4b6061d3.tar.xz
systemd-36556f6e514095d220d1cdb37697a07f4b6061d3.zip
systemctl: use free_and_replace on global variable
In normal usage we cannot set it multiple times, but from a fuzzer we may. Doing it this way is nicer anyway.
Diffstat (limited to '')
-rw-r--r--src/systemctl/systemctl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/systemctl/systemctl.c b/src/systemctl/systemctl.c
index b82e541d7a..b27da5dad9 100644
--- a/src/systemctl/systemctl.c
+++ b/src/systemctl/systemctl.c
@@ -1159,8 +1159,8 @@ static int run(int argc, char *argv[]) {
case ACTION_SUSPEND_THEN_HIBERNATE:
case ACTION_EMERGENCY:
case ACTION_DEFAULT:
- /* systemctl verbs with no equivalent in the legacy commands. These cannot appear in
- * arg_action. Fall through. */
+ /* systemctl verbs with no equivalent in the legacy commands. These cannot appear in
+ * arg_action. Fall through. */
case _ACTION_INVALID:
default: