[systemd-devel] [PATCH] systemctl: fix variable initialization

Michal Sekletar msekleta at redhat.com
Tue Mar 12 07:34:26 PDT 2013


---
 src/systemctl/systemctl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/systemctl/systemctl.c b/src/systemctl/systemctl.c
index 4a55c56..db12255 100644
--- a/src/systemctl/systemctl.c
+++ b/src/systemctl/systemctl.c
@@ -1454,7 +1454,7 @@ static int start_unit_one(
                 Set *s) {
 
         _cleanup_dbus_message_unref_ DBusMessage *reply = NULL;
-        _cleanup_free_ char *n;
+        _cleanup_free_ char *n = NULL;
         const char *path;
         int r;
 
-- 
1.8.1.4



More information about the systemd-devel mailing list