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

This commit is contained in:
Janek Bevendorff committed 2018-01-20 14:45:22 +01:00
1 parent 6667b79ac0
commit cfe8ca9836
2 files changed
+1 -4

No files matched your search

-3
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);
+1 -1
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)