]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
systemctl: null-initialize pointer with cleanup attribute
authorDaniel Buch <boogiewasthere@gmail.com>
Wed, 6 May 2015 08:28:08 +0000 (10:28 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 6 May 2015 16:26:20 +0000 (09:26 -0700)
src/systemctl/systemctl.c

index 4f36ba8dc3721d672acb6c9149bb82b068402320..4c45bfc1b845e0ebdd69e895683ed99954aca3ba 100644 (file)
@@ -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.");