diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2009-09-01 18:19:26 -0700 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2009-09-01 18:19:26 -0700 |
commit | b63a492dfd7f0b42f8396ba9adb53c840e03fddd (patch) | |
tree | 475efad93335abd32acc730880256205227d1073 /plugins/bluetooth.c | |
parent | 2a25e93a01e973f41c5955f2332fa458d895bb55 (diff) | |
download | connman-b63a492dfd7f0b42f8396ba9adb53c840e03fddd.tar.gz connman-b63a492dfd7f0b42f8396ba9adb53c840e03fddd.tar.bz2 connman-b63a492dfd7f0b42f8396ba9adb53c840e03fddd.zip |
Don't initialize error variable
Diffstat (limited to 'plugins/bluetooth.c')
-rw-r--r-- | plugins/bluetooth.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/plugins/bluetooth.c b/plugins/bluetooth.c index 69a5ebb4..f123f783 100644 --- 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) |