mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-06-27 08:01:21 -04:00
Always initialize m_httpClient to nullptr to avoid accidental dereferencing, resolves #1410
This commit is contained in:
parent
6667b79ac0
commit
cfe8ca9836
2 changed files with 1 additions and 4 deletions
|
@ -53,9 +53,6 @@ EditWidgetIcons::EditWidgetIcons(QWidget* parent)
|
||||||
, m_fallbackToGoogle(true)
|
, m_fallbackToGoogle(true)
|
||||||
, m_redirectCount(0)
|
, m_redirectCount(0)
|
||||||
#endif
|
#endif
|
||||||
#ifdef WITH_XC_HTTP
|
|
||||||
, m_httpClient(nullptr)
|
|
||||||
#endif
|
|
||||||
{
|
{
|
||||||
m_ui->setupUi(this);
|
m_ui->setupUi(this);
|
||||||
|
|
||||||
|
|
|
@ -97,7 +97,7 @@ private:
|
||||||
QUrl m_redirectUrl;
|
QUrl m_redirectUrl;
|
||||||
bool m_fallbackToGoogle;
|
bool m_fallbackToGoogle;
|
||||||
unsigned short m_redirectCount;
|
unsigned short m_redirectCount;
|
||||||
qhttp::client::QHttpClient* m_httpClient;
|
qhttp::client::QHttpClient* m_httpClient = nullptr;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
Q_DISABLE_COPY(EditWidgetIcons)
|
Q_DISABLE_COPY(EditWidgetIcons)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue