From: Gowtham Anandha Babu Date: Tue, 9 Dec 2014 12:22:31 +0000 (+0530) Subject: src/bluetooth-common: Fix variable reassigning issue X-Git-Tag: submit/tizen/20141210.055510^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fheads%2Ftizen_3.0.2015.q1_common;p=platform%2Fcore%2Fapi%2Fbluetooth.git src/bluetooth-common: Fix variable reassigning issue Fix variable which is reassigned a value before the old one has been used. So, no use of initializing it. Change-Id: I6bcaa66ee035c294c0e9236b8b1e3ed39616419f --- diff --git a/src/bluetooth-common.c b/src/bluetooth-common.c index 6474b76..a528ae6 100644 --- a/src/bluetooth-common.c +++ b/src/bluetooth-common.c @@ -479,7 +479,7 @@ static void __bt_event_proxy(int event, bluetooth_event_param_t *param, void *us telephony_event_callid_t *call_data = NULL; char *device_addr = NULL; int error_code = BT_ERROR_NONE; - int event_index = -1; + int event_index; bluetooth_network_device_info_t *dev_info = NULL; bt_hdp_connected_t *hdp_conn_info = NULL; bt_hdp_disconnected_t *hdp_disconn_info = NULL;