case BT_GATT_GET_PRIMARY_SERVICES: {
if(!g_strcmp0((char*)req_info->user_data, (char*)data)){
bt_services_browse_info_t param;
+ memset(¶m, 0, sizeof(bt_services_browse_info_t));
_bt_convert_addr_string_to_type(param.device_addr.addr, (char*)data);
out_param = g_array_new(FALSE, FALSE, sizeof(gchar));
g_array_append_vals(out_param, ¶m, sizeof(bt_services_browse_info_t));
_bt_convert_addr_type_to_string(addr, prop->device_address.addr);
if (!g_strcmp0(addr, (char*)data)){
bt_char_browse_info_t param;
+ memset(¶m, 0, sizeof(bt_char_browse_info_t));
_bt_convert_addr_string_to_type(param.device_addr.addr,addr);
out_param = g_array_new(FALSE, FALSE, sizeof(gchar));
g_array_append_vals(out_param, ¶m, sizeof(bt_char_browse_info_t));
bluetooth_gatt_client_char_prop_info_t *prop = (bluetooth_gatt_client_char_prop_info_t*)req_info->user_data;
_bt_convert_addr_type_to_string(addr, prop->device_address.addr);
if (!g_strcmp0(addr, (char*)data)){
- bt_descriptor_browse_info_t param ;
+ bt_descriptor_browse_info_t param;
+ memset(¶m, 0, sizeof(bt_descriptor_browse_info_t));
_bt_convert_addr_string_to_type(param.device_addr.addr, addr);
out_param = g_array_new(FALSE, FALSE, sizeof(gchar));
g_array_append_vals(out_param, ¶m, sizeof(bt_descriptor_browse_info_t));
_bt_convert_addr_type_to_string(addr, prop->device_address.addr);
if (!g_strcmp0(addr, (char*)data)){
bt_gatt_notif_reg_info_t param;
+ memset(¶m, 0, sizeof(bt_gatt_notif_reg_info_t));
_bt_convert_addr_string_to_type(param.addr.addr, addr);
out_param = g_array_new(FALSE, FALSE, sizeof(gchar));
g_array_append_vals(out_param, ¶m, sizeof(bt_gatt_notif_reg_info_t));