mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-10-01 01:26:01 -04:00
Always initialize m_httpClient to nullptr to avoid accidental dereferencing, resolves #1410
This commit is contained in:
parent
6667b79ac0
commit
cfe8ca9836
@ -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);
|
||||
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user