]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
systemctl: do not set variable to be immediately overwritten
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 30 Sep 2015 16:33:31 +0000 (12:33 -0400)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 30 Sep 2015 16:33:31 +0000 (12:33 -0400)
src/systemctl/systemctl.c

index a965369c0c87bf16d9945158a07fd2e5cf6f6e4c..be9d58a03c5a39db08f8bacf774da521cb190074 100644 (file)
@@ -3110,7 +3110,7 @@ static int start_special(int argc, char *argv[], void *userdata) {
                         return r;
 
         } else if (a == ACTION_EXIT && argc > 1) {
-                uint8_t code = 0;
+                uint8_t code;
 
                 /* If the exit code is not given on the command line,
                  * don't reset it to zero: just keep it as it might