From edbe0ace7b9e4c8afe0e61bb66b9dd77385ddfa3 Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Tue, 21 Jul 2009 11:50:39 +0300 Subject: Fix bogus error comparison There's no "error" variable here so the comparison was always with the address of the public error function, which will always be != NULL. --- src/dbus-common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/dbus-common.c b/src/dbus-common.c index d06d8e5a..059c91c5 100644 --- a/src/dbus-common.c +++ b/src/dbus-common.c @@ -171,7 +171,7 @@ int hcid_dbus_init(void) conn = g_dbus_setup_bus(DBUS_BUS_SYSTEM, BLUEZ_NAME, &err); if (!conn) { - if (error != NULL && dbus_error_is_set(&err)) { + if (dbus_error_is_set(&err)) { dbus_error_free(&err); return -EIO; } -- cgit v1.2.3