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

Commit 6411ea06 authored by Greg Kaiser's avatar Greg Kaiser
Browse files

csip: Initialize class field

'connecting_actively' was the field in GattServiceDevice which wasn't
set in the constructor or given a default value.  We give it a
default value to make it like the others and make any future bugs
where this isn't set before access easier to debug.

Bug: 150670922
Test: TreeHugger
Change-Id: I408cf435c490bed6d3785cf47a99369252763644
parent f8b8cdee
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -90,7 +90,7 @@ class GattServiceDevice {
  /*
   * We are making active attempt to connect to this device, 'direct connect'.
   */
  bool connecting_actively;
  bool connecting_actively = false;

  uint16_t conn_id = GATT_INVALID_CONN_ID;
  uint16_t service_handle = GAP_INVALID_HANDLE;