Browse Source

openaip : Initialize country index

Initialize the country index so a newly constructed OpenAIP instance starts
with a defined value.

Found by Coverity (UNINIT_CTOR).

Signed-off-by: Robin Getz <rgetz503@gmail.com>
chirpmodem-v8.0.0
Robin Getz 2 months ago
parent
commit
70b1802148
No known key found for this signature in database
GPG Key ID: 51C7231FFED0E060
  1. 3
      sdrbase/util/openaip.cpp

3
sdrbase/util/openaip.cpp

@ -520,7 +520,8 @@ QDateTime OpenAIP::m_airspacesModifiedDateTime; @@ -520,7 +520,8 @@ QDateTime OpenAIP::m_airspacesModifiedDateTime;
QDateTime OpenAIP::m_navAidsModifiedDateTime;
OpenAIP::OpenAIP(QObject *parent) :
QObject(parent)
QObject(parent),
m_countryIndex(0)
{
connect(&m_dlm, &HttpDownloadManager::downloadComplete, this, &OpenAIP::downloadFinished);
}

Loading…
Cancel
Save