From: Daniel Buch Date: Wed, 6 May 2015 08:28:08 +0000 (+0200) Subject: systemctl: null-initialize pointer with cleanup attribute X-Git-Tag: v220~197 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=cafbecf31ca615feaf5e5392b62c7511081abefd;p=thirdparty%2Fsystemd.git systemctl: null-initialize pointer with cleanup attribute --- diff --git a/src/systemctl/systemctl.c b/src/systemctl/systemctl.c index 4f36ba8dc37..4c45bfc1b84 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.");