Always initialize m_httpClient to nullptr to avoid accidental dereferencing, resolves #1410

This commit is contained in:
Janek Bevendorff 2018-01-20 14:45:22 +01:00
parent 6667b79ac0
commit cfe8ca9836
No known key found for this signature in database
GPG Key ID: 2FDEB0D40BCA5E11
2 changed files with 1 additions and 4 deletions

View File

@ -53,9 +53,6 @@ EditWidgetIcons::EditWidgetIcons(QWidget* parent)
, m_fallbackToGoogle(true)
, m_redirectCount(0)
#endif
#ifdef WITH_XC_HTTP
, m_httpClient(nullptr)
#endif
{
m_ui->setupUi(this);

View File

@ -97,7 +97,7 @@ private:
QUrl m_redirectUrl;
bool m_fallbackToGoogle;
unsigned short m_redirectCount;
qhttp::client::QHttpClient* m_httpClient;
qhttp::client::QHttpClient* m_httpClient = nullptr;
#endif
Q_DISABLE_COPY(EditWidgetIcons)