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

Skip to content
Commit b908bc39 authored by George Burgess IV's avatar George Burgess IV Committed by Chris Manton
Browse files

btm: explicitly zero-initialize a variable

This variable is potentially used without being initialized in the debug
print below it. While our toolchain zero-initiailizes all stack vars by
default now, this isn't guaranteed to be the case in the future, so make
this explicit.

Caught by the static analyzer:
packages/modules/Bluetooth/system/stack/btm/btm_ble.cc:865:3: warning:
4th function call argument is an uninitialized value
[clang-analyzer-core.CallAndMessage]

Tag: #stability
Bug: 206470603
Test: TreeHugger
Change-Id: Ia580c918c4eb2c8d160ab8d1ba2f9bd5601c3828
parent fb27f55f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment