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

Commit d99708d5 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: I5b818efffc3e4434de357ee61c7d40db491099be
parent 8d6d4f23
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -2340,7 +2340,12 @@ void bta_av_rc_disc(uint8_t disc) {
void bta_av_dereg_comp(tBTA_AV_DATA* p_data) {
  tBTA_AV_CB* p_cb = &bta_av_cb;
  tBTA_AV_SCB* p_scb;
  tBTA_UTL_COD cod;
  tBTA_UTL_COD cod = {
    .minor = BTM_COD_MINOR_UNCLASSIFIED,
    .major = BTM_COD_MAJOR_UNCLASSIFIED,
    .service = 0,
  };

  uint8_t mask;
  BT_HDR* p_buf;