Fix coverity scan issue: uninitialized scalar variable
[Description]
Issue type: uninitialized scalar variable
Bug: 247905252
Test: avrcp function pass
Change-Id: Ieaf6bce58a6bc60cf3de5fc5e247f0f29864e2eb
diff --git a/system/profile/avrcp/device.cc b/system/profile/avrcp/device.cc
index 2123ed6..7b3765d 100644
--- a/system/profile/avrcp/device.cc
+++ b/system/profile/avrcp/device.cc
@@ -1099,6 +1099,8 @@
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)) {