chiark / gitweb /
logind-dbus: initialize result variable
authorLukas Nykryn <lnykryn@redhat.com>
Fri, 19 Apr 2013 11:58:58 +0000 (13:58 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 19 Apr 2013 14:10:41 +0000 (10:10 -0400)
src/login/logind-dbus.c

index 4176902..05cc1fd 100644 (file)
@@ -1137,7 +1137,7 @@ static int bus_manager_can_shutdown_or_sleep(
                 DBusMessage **_reply) {
 
         bool multiple_sessions, challenge, blocked, b;
-        const char *result;
+        const char *result = NULL;
         _cleanup_dbus_message_unref_ DBusMessage *reply = NULL;
         int r;
         unsigned long ul;