diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2021-03-31 18:07:25 +0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2021-03-31 18:24:53 +0200 |
commit | 703e2870b1555ad95a164428c834154561288110 (patch) | |
tree | 221c7681e7f0d8f6ea2393087ef28d07c0144113 /src/systemctl/systemctl-start-unit.c | |
parent | 1c93632ead00e04b76900966104c17419234dea1 (diff) | |
download | systemd-703e2870b1555ad95a164428c834154561288110.tar.gz |
systemctl: silence gcc maybe-unused warning
Diffstat (limited to 'src/systemctl/systemctl-start-unit.c')
-rw-r--r-- | src/systemctl/systemctl-start-unit.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/systemctl/systemctl-start-unit.c b/src/systemctl/systemctl-start-unit.c index c40e807212..096b8ada20 100644 --- a/src/systemctl/systemctl-start-unit.c +++ b/src/systemctl/systemctl-start-unit.c @@ -307,7 +307,9 @@ int start_unit(int argc, char *argv[], void *userdata) { method = verb_to_method(argv[0]); job_type = verb_to_job_type(argv[0]); mode = arg_job_mode; - } + } else + method = job_type = mode = NULL; + one_name = NULL; } } else { |