diff options
author | Johan Hedberg <johan.hedberg@nokia.com> | 2009-07-21 11:50:39 +0300 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@nokia.com> | 2009-07-21 11:50:54 +0300 |
commit | edbe0ace7b9e4c8afe0e61bb66b9dd77385ddfa3 (patch) | |
tree | a8f2d1c186d77d77df6a882dab48fc484cb8dbb2 /src | |
parent | 920b1db47d0007329af4f2532431fecf4c67209c (diff) |
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.
Diffstat (limited to 'src')
-rw-r--r-- | src/dbus-common.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |