Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d9ef9db8 authored by Manu Viswanadhan's avatar Manu Viswanadhan Committed by android-build-merger
Browse files

Initializing the SDP event message pointer before sending

am: 9e8bb6e1

Change-Id: Id9a32b5f07e3d8bbe175d99acf4127a2612a4de2
parents a403d502 9e8bb6e1
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -2013,6 +2013,8 @@ static void bta_dm_find_services(BD_ADDR bd_addr) {
  /* no more services to be discovered */
  if (bta_dm_search_cb.service_index >= BTA_MAX_SERVICE_ID) {
    tBTA_DM_MSG* p_msg = (tBTA_DM_MSG*)osi_malloc(sizeof(tBTA_DM_MSG));
    /* initialize the data structure - includes p_raw_data and raw_data_size */
    memset(&(p_msg->disc_result.result), 0, sizeof(tBTA_DM_DISC_RES));
    p_msg->hdr.event = BTA_DM_DISCOVERY_RESULT_EVT;
    p_msg->disc_result.result.disc_res.services =
        bta_dm_search_cb.services_found;