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

Commit f7053e05 authored by Ugo Yu's avatar Ugo Yu
Browse files

Initialize device_type before use it

We are using the default value of device_type when the transport type
is unkown, initialize it in case we get something weird.

Bug: 149353835
Test: Manual
Change-Id: I56d13fcebdf330356d1214cb095fcd4d5e658ff9
parent 7ed577a5
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -663,7 +663,7 @@ static void btif_dm_cb_create_bond(const RawAddress& bd_addr,
  bool is_hid = check_cod(&bd_addr, COD_HID_POINTING);
  bond_state_changed(BT_STATUS_SUCCESS, bd_addr, BT_BOND_STATE_BONDING);

  int device_type;
  int device_type = 0;
  int addr_type;
  std::string addrstr = bd_addr.ToString();
  const char* bdstr = addrstr.c_str();