OSDN Git Service
(root)
/
android-x86
/
external-bluetooth-bluez.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
920b1db
)
Fix bogus error comparison
author
Johan Hedberg
<johan.hedberg@nokia.com>
Tue, 21 Jul 2009 08:50:39 +0000
(11:50 +0300)
committer
Johan Hedberg
<johan.hedberg@nokia.com>
Tue, 21 Jul 2009 08:50:54 +0000
(11:50 +0300)
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
patch
|
blob
|
history
diff --git
a/src/dbus-common.c
b/src/dbus-common.c
index
d06d8e5
..
059c91c
100644
(file)
--- 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;
}