Fix the build error 14/185414/1
authorDoHyun Pyun <dh79.pyun@samsung.com>
Mon, 30 Jul 2018 09:03:10 +0000 (18:03 +0900)
committerDoHyun Pyun <dh79.pyun@samsung.com>
Mon, 30 Jul 2018 09:03:10 +0000 (18:03 +0900)
Change-Id: I058ac2e8d64c7dd1dbe19b8a223a1dc771f7e9ad
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
src/bluetooth-gatt.c

index 074158c..c3c323a 100644 (file)
@@ -4500,8 +4500,8 @@ void _bt_handle_gatt_client_char_read_completed_event(int result,
        bt_gatt_service_s *svc;
        bt_gatt_characteristic_s *chr;
 
-       bt_gatt_char_property_t *char_prop1; /* Pass Case */
-       bluetooth_gatt_client_char_prop_info_t *char_prop2;             /* Fail Case */
+       bt_gatt_char_property_t *char_prop1 = NULL; /* Pass Case */
+       bluetooth_gatt_client_char_prop_info_t *char_prop2 = NULL;              /* Fail Case */
        bt_gatt_client_s *client_s;
 
        bt_gatt_h gatt_handle = NULL;
@@ -4602,8 +4602,8 @@ void _bt_handle_gatt_client_desc_read_completed_event(int result,
        bt_gatt_characteristic_s *chr;
        bt_gatt_client_request_completed_cb cb = NULL;
 
-       bt_gatt_char_descriptor_property_t *desc_prop1; /* Pass Case */
-       bluetooth_gatt_client_desc_prop_info_t *desc_prop2;             /* Fail Case */
+       bt_gatt_char_descriptor_property_t *desc_prop1 = NULL; /* Pass Case */
+       bluetooth_gatt_client_desc_prop_info_t *desc_prop2 = NULL;              /* Fail Case */
        bt_gatt_descriptor_s *desc;
        bt_gatt_client_s *client_s;