summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKay Sievers <kay@vrfy.org>2013-10-21 00:56:47 +0200
committerKay Sievers <kay@vrfy.org>2013-10-21 00:56:47 +0200
commitbd4b5df2cb253f130ecdac604e865e3f832c316a (patch)
tree6b1925db9472561c6e395a2eed35ad0113897c7e
parentca2871d9b027018c108e0cf7bbc4e5a919e300c3 (diff)
bus: initialize variable, now that we might skip debug logging
-rw-r--r--src/core/dbus.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/core/dbus.c b/src/core/dbus.c
index 771ba01f67..b0ae3e1ae7 100644
--- a/src/core/dbus.c
+++ b/src/core/dbus.c
@@ -768,7 +768,7 @@ static void bus_new_connection(
}
static int init_registered_system_bus(Manager *m) {
- char *id;
+ char *id = NULL;
if (!dbus_connection_add_filter(m->system_bus, system_bus_message_filter, m, NULL))
return log_oom();
@@ -836,7 +836,8 @@ static int init_registered_api_bus(Manager *m) {
return r;
if (m->running_as == SYSTEMD_USER) {
- char *id;
+ char *id = NULL;
+
log_debug("Successfully connected to API D-Bus bus %s as %s",
strnull((id = dbus_connection_get_server_id(m->api_bus))),
strnull(dbus_bus_get_unique_name(m->api_bus)));