Skip to content

Commit

Permalink
Fixing medium issue in static code analysis
Browse files Browse the repository at this point in the history
has_died_ is not initialized in the constructor nor
in any functions that it calls

Initialized has_died_ in constructor

Tested:
BT on/off
Connect phone, play music
HFP call
File transfer
CtsBluetoothTestCases

Tracked-On: OAM-123193
Signed-off-by: devath1x <[email protected]>
Signed-off-by: Gowtham Anandha Babu <[email protected]>
  • Loading branch information
devath1x committed Sep 17, 2024
1 parent c60f6bd commit 4615ec5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bluetooth/bluetooth_hci.cc
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ static const uint8_t HCI_DATA_TYPE_SCO = 3;

class BluetoothDeathRecipient : public hidl_death_recipient {
public:
BluetoothDeathRecipient(const sp<IBluetoothHci> hci) : mHci(hci) {}
BluetoothDeathRecipient(const sp<IBluetoothHci> hci) : mHci(hci), has_died_(false) {}

virtual void serviceDied(
uint64_t /*cookie*/,
Expand Down

0 comments on commit 4615ec5

Please sign in to comment.