X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fcore%2Fdbus.c;h=b92c7d0b99923cc739f7d224fcc3f03fca3bd435;hb=ae7a7182da31371555fceb2aed609e40a64b900a;hp=236ebc99d99804c5f1d7028c6dd31bf49403236d;hpb=c6a818c82035da91e7987920510f0dda61d8781a;p=elogind.git diff --git a/src/core/dbus.c b/src/core/dbus.c index 236ebc99d..b92c7d0b9 100644 --- a/src/core/dbus.c +++ b/src/core/dbus.c @@ -978,9 +978,8 @@ static DBusConnection* manager_bus_connect_private(Manager *m, DBusBusType type) } return connection; + fail: - if (connection) - dbus_connection_close(connection); dbus_error_free(&error); return NULL; } @@ -1054,7 +1053,7 @@ fail: static int bus_init_private(Manager *m) { DBusError error; int r; - const char *const external_only[] = { + static const char *const external_only[] = { "EXTERNAL", NULL };