Fix "g_variant_get" API usage error 87/101487/1
authorNagaraj D R <nagaraj.dr@samsung.com>
Wed, 30 Nov 2016 06:58:50 +0000 (12:28 +0530)
committerDoHyun Pyun <dh79.pyun@samsung.com>
Thu, 1 Dec 2016 09:03:30 +0000 (18:03 +0900)
g_variant_get expects address, as its parameter
and not the local value

Change-Id: I221e26e43f03c4b2476a210190769668b31c3de1

bt-api/bt-event-handler.c

index 7bda552318086b9b957e889e23a301a861776e47..6e8f97dc5094b8c44c033c76bf38575b7f73bb8d 100644 (file)
@@ -1058,7 +1058,7 @@ void __bt_device_event_filter(GDBusConnection *connection,
                BT_DBG("BT_LE_DATA_LENGTH_CHANGED");
 
                g_variant_get(parameters, "(i&sqqqq)", &result, &address,
-                               tx_octets, tx_time, rx_octets, rx_time);
+                               &tx_octets, &tx_time, &rx_octets, &rx_time);
 
                params.max_tx_octets = tx_octets;
                params.max_tx_time = tx_time;