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

Commit a55d3ffc 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

am: d9ef9db8

Change-Id: Ib963b4f53925e9d39f8131a29210b25e93e7f99e
parents b5d6bc86 d9ef9db8
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;