summaryrefslogtreecommitdiffstats
path: root/src/direct_bt/HCIHandler.cpp
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2022-04-15 18:01:28 +0200
committerSven Gothel <[email protected]>2022-04-15 18:01:28 +0200
commit7cf37805d1e1e08608104465a800a6ecac2f4815 (patch)
treea848fdd2ba12a540a3e3d337c661872137033368 /src/direct_bt/HCIHandler.cpp
parent85c5376ff3385bb6695b7bd05405603d1523269b (diff)
Fix uninitialized fields (valgrind conditional jump) in BTAdapter, BTDevice and HCIHandler, shown w/ DBG_PRINT()
dbt_scanner10 is now clean of valgrind w/ tool=memcheck
Diffstat (limited to 'src/direct_bt/HCIHandler.cpp')
-rw-r--r--src/direct_bt/HCIHandler.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/direct_bt/HCIHandler.cpp b/src/direct_bt/HCIHandler.cpp
index 9660af9d..f1549b3f 100644
--- a/src/direct_bt/HCIHandler.cpp
+++ b/src/direct_bt/HCIHandler.cpp
@@ -673,11 +673,15 @@ HCIHandler::HCIHandler(const uint16_t dev_id_, const BTMode btMode_) noexcept
jau::service_runner::Callback() /* init */,
jau::bindMemberFunc(this, &HCIHandler::hciReaderEndLocked)),
hciEventRing(env.HCI_EVT_RING_CAPACITY),
+ le_ll_feats( LE_Features::NONE ),
+ sup_commands_set( false ),
allowClose( comm.isOpen() ),
btMode(btMode_),
currentScanType(ScanType::NONE),
advertisingEnabled(false)
{
+ zeroSupCommands();
+
WORDY_PRINT("HCIHandler<%u>.ctor: Start %s", dev_id, toString().c_str());
if( !allowClose ) {
ERR_PRINT("HCIHandler<%u>::ctor: Could not open hci control channel %s", dev_id, toString().c_str());