From: Marcel Holtmann Date: Wed, 2 Sep 2009 01:19:26 +0000 (-0700) Subject: Don't initialize error variable X-Git-Tag: 2.0_alpha~3267 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b63a492dfd7f0b42f8396ba9adb53c840e03fddd;p=framework%2Fconnectivity%2Fconnman.git Don't initialize error variable --- diff --git a/plugins/bluetooth.c b/plugins/bluetooth.c index 69a5ebb..f123f78 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)