diff options
Diffstat (limited to 'glib')
-rw-r--r-- | glib/dbus-gmain.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/glib/dbus-gmain.c b/glib/dbus-gmain.c index 23c5a78c..30b1c4e0 100644 --- a/glib/dbus-gmain.c +++ b/glib/dbus-gmain.c @@ -610,12 +610,11 @@ dbus_g_bus_get (DBusBusType type, { dbus_set_g_error (error, &derror); dbus_error_free (&derror); + return NULL; } - else - { - /* does nothing if it's already been done */ - dbus_connection_setup_with_g_main (connection, NULL); - } + + /* does nothing if it's already been done */ + dbus_connection_setup_with_g_main (connection, NULL); return DBUS_G_CONNECTION_FROM_CONNECTION (connection); } |