summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Buch <boogiewasthere@gmail.com>2015-05-06 10:28:08 +0200
committerLennart Poettering <lennart@poettering.net>2015-05-06 09:26:20 -0700
commitcafbecf31ca615feaf5e5392b62c7511081abefd (patch)
tree8605c731af17bee29d09335b0246b8cbf67b868c
parent90615ad79188c360c0571b0a0d2ed81d88ece1ab (diff)
systemctl: null-initialize pointer with cleanup attribute
-rw-r--r--src/systemctl/systemctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/systemctl/systemctl.c b/src/systemctl/systemctl.c
index 4f36ba8dc3..4c45bfc1b8 100644
--- a/src/systemctl/systemctl.c
+++ b/src/systemctl/systemctl.c
@@ -7289,7 +7289,7 @@ static int halt_main(sd_bus *bus) {
if (arg_when > 0) {
_cleanup_bus_error_free_ sd_bus_error error = SD_BUS_ERROR_NULL;
_cleanup_bus_close_unref_ sd_bus *b = NULL;
- _cleanup_free_ char *m;
+ _cleanup_free_ char *m = NULL;
if (avoid_bus()) {
log_error("Unable to perform operation without bus connection.");