From db434702be51e913e7757af14ed3808ebecb81e1 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Wed, 27 Dec 2017 17:24:12 -0800 Subject: [PATCH] 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 --- core/btdiscovery.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) {