aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2017-12-27 17:24:12 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-12-27 17:24:12 -0800
commitdb434702be51e913e7757af14ed3808ebecb81e1 (patch)
tree442d90b29a08bad568e241f45712b8387cbde0f3 /core
parent84d7d80451afa2671486804dfccd6eb8e8125a11 (diff)
downloadsubsurface-db434702be51e913e7757af14ed3808ebecb81e1.tar.gz
Cleanup: avoid potentially uninitialized members
Realistically this is a false positive as we should never use a second BTDiscovery instance - but there's nothing wrong with being extra certain. Coverity CID 208319 Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'core')
-rw-r--r--core/btdiscovery.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/btdiscovery.cpp b/core/btdiscovery.cpp
index 63a1df5fd..394a90757 100644
--- a/core/btdiscovery.cpp
+++ b/core/btdiscovery.cpp
@@ -52,7 +52,8 @@ static dc_descriptor_t *getDeviceType(QString btName)
return(NULL);
}
-BTDiscovery::BTDiscovery(QObject *parent)
+BTDiscovery::BTDiscovery(QObject *parent) : m_btValid(false),
+ discoveryAgent(NULL)
{
Q_UNUSED(parent)
if (m_instance) {