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>
This commit is contained in:
Dirk Hohndel 2017-12-27 17:24:12 -08:00
parent 84d7d80451
commit db434702be

View file

@ -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) {