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

Commit e9d89ea0 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: avrcp function pass

Change-Id: Ieaf6bce58a6bc60cf3de5fc5e247f0f29864e2eb
parent 07dd21c6
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1099,6 +1099,8 @@ void Device::GetItemAttributesVFSResponse(
                                                               browse_mtu_);

  ListItem item_requested;
  item_requested.type = ListItem::SONG;

  for (const auto& temp : item_list) {
    if ((temp.type == ListItem::FOLDER && temp.folder.media_id == media_id) ||
        (temp.type == ListItem::SONG && temp.song.media_id == media_id)) {