diff options
author | Sven Gothel <[email protected]> | 2020-10-17 01:58:07 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2020-10-17 01:58:07 +0200 |
commit | f1505d951c8344247b4d32af7224895ba7866569 (patch) | |
tree | 6246a1d40ef76f57cbf63237733bbbf6a25697d3 /src | |
parent | aa1da4819775406e1ce6fdfab59166ebca1c47d7 (diff) |
DBTAdapter::stopDiscovery(): Fix uninitialized 'HCIStatusCode status', erroneously overriden by local variable!
Was detected with Full Warnings enabled!
Diffstat (limited to 'src')
-rw-r--r-- | src/direct_bt/DBTAdapter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/direct_bt/DBTAdapter.cpp b/src/direct_bt/DBTAdapter.cpp index 3c63580b..037c54dc 100644 --- a/src/direct_bt/DBTAdapter.cpp +++ b/src/direct_bt/DBTAdapter.cpp @@ -566,7 +566,7 @@ HCIStatusCode DBTAdapter::stopDiscovery() noexcept { status = HCIStatusCode::SUCCESS; // send event: discoveryTempDisabled } else { // Actual disabling discovery - HCIStatusCode status = hci.le_enable_scan(false /* enable */); + status = hci.le_enable_scan(false /* enable */); if( HCIStatusCode::SUCCESS != status ) { ERR_PRINT("DBTAdapter::stopDiscovery: le_enable_scan failed: %s", getHCIStatusCodeString(status).c_str()); } |