From 96d369bdbd2d10c134f309d9a710d071b1719ac1 Mon Sep 17 00:00:00 2001 From: Roman Bogorodskiy Date: Fri, 30 Dec 2005 12:57:28 +0000 Subject: [PATCH] Minor fixes. git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky@453 7f574dfc-610e-0410-a909-a81674777703 --- src/bmpx.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/bmpx.c b/src/bmpx.c index de245eff..6dffb465 100644 --- a/src/bmpx.c +++ b/src/bmpx.c @@ -6,7 +6,6 @@ #include #include - #include #include @@ -32,6 +31,7 @@ void update_bmpx() bus = dbus_g_bus_get(DBUS_BUS_SESSION, &error); if (bus == NULL) { ERR("%s\n", error->message); + goto fail; } remote_object = dbus_g_proxy_new_for_name(bus, @@ -41,10 +41,11 @@ void update_bmpx() if (!remote_object) { ERR("%s\n", error->message); goto fail; - } else - connected = 1; - } + } + connected = 1; + } + if (connected == 1) { if (dbus_g_proxy_call(remote_object, "GetCurrentUri", &error, G_TYPE_INVALID,