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

Commit b250eaf8 authored by Zero Liu's avatar Zero Liu Committed by Huirong Liao
Browse files

Fix coverity scan issue: uninitialized scalar variable

[Description]
Issue type: uninitialized scalar variable

Bug: 247905252
Test: a2dp function pass

Change-Id: I230470f2d39e0a2629531f0cedd15a5376f217b0
parent 8d6d4f23
Loading
Loading
Loading
Loading
+9 −7
Original line number Diff line number Diff line
@@ -2068,13 +2068,15 @@ void bta_av_rc_disc_done(UNUSED_ATTR tBTA_AV_DATA* p_data) {
      } else if (p_scb->use_rc) {
        /* can not find AVRC on peer device. report failure */
        p_scb->use_rc = false;
        tBTA_AV_RC_OPEN rc_open;
        rc_open.peer_addr = p_scb->PeerAddress();
        rc_open.peer_features = 0;
        rc_open.cover_art_psm = 0;
        rc_open.status = BTA_AV_FAIL_SDP;
        tBTA_AV bta_av_data;
        bta_av_data.rc_open = rc_open;
        tBTA_AV bta_av_data = {
          .rc_open = {
            .rc_handle = BTA_AV_RC_HANDLE_NONE,
            .cover_art_psm = 0,
            .peer_features = 0,
            .peer_addr = p_scb->PeerAddress(),
            .status = BTA_AV_FAIL_SDP,
          },
        };
        (*p_cb->p_cback)(BTA_AV_RC_OPEN_EVT, &bta_av_data);
      }
      if (peer_features != 0)