projects
/
platform
/
upstream
/
connman.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2a25e93
)
Don't initialize error variable
author
Marcel Holtmann
<marcel@holtmann.org>
Wed, 2 Sep 2009 01:19:26 +0000
(18:19 -0700)
committer
Marcel Holtmann
<marcel@holtmann.org>
Wed, 2 Sep 2009 01:19:26 +0000
(18:19 -0700)
plugins/bluetooth.c
patch
|
blob
|
history
diff --git
a/plugins/bluetooth.c
b/plugins/bluetooth.c
index
69a5ebb
..
f123f78
100644
(file)
--- a/
plugins/bluetooth.c
+++ b/
plugins/bluetooth.c
@@
-807,15
+807,17
@@
static const char *adapter_rule = "type=signal,member=" PROPERTY_CHANGED
static int bluetooth_init(void)
{
- int err
= -EIO
;
+ int err;
connection = connman_dbus_get_connection();
if (connection == NULL)
return -EIO;
if (dbus_connection_add_filter(connection, bluetooth_signal,
- NULL, NULL) == FALSE)
+ NULL, NULL) == FALSE) {
+ err = -EIO;
goto unref;
+ }
err = connman_network_driver_register(&pan_driver);
if (err < 0)