mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-04-05 13:37:43 +03:00
Initialize some instance variables in ctor.
Discovered by Coverity. Most likely doesn't fix any actual bug but better be safe.
This commit is contained in:
parent
c535736853
commit
7a2c02f0df
4 changed files with 13 additions and 2 deletions
|
@ -49,7 +49,12 @@ private:
|
||||||
|
|
||||||
|
|
||||||
KeePass1Reader::KeePass1Reader()
|
KeePass1Reader::KeePass1Reader()
|
||||||
: m_error(false)
|
: m_db(Q_NULLPTR)
|
||||||
|
, m_tmpParent(Q_NULLPTR)
|
||||||
|
, m_device(Q_NULLPTR)
|
||||||
|
, m_encryptionFlags(0)
|
||||||
|
, m_transformRounds(0)
|
||||||
|
, m_error(false)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -33,8 +33,12 @@
|
||||||
#include "streams/SymmetricCipherStream.h"
|
#include "streams/SymmetricCipherStream.h"
|
||||||
|
|
||||||
KeePass2Reader::KeePass2Reader()
|
KeePass2Reader::KeePass2Reader()
|
||||||
: m_error(false)
|
: m_device(Q_NULLPTR)
|
||||||
|
, m_headerStream(Q_NULLPTR)
|
||||||
|
, m_error(false)
|
||||||
|
, m_headerEnd(false)
|
||||||
, m_saveXml(false)
|
, m_saveXml(false)
|
||||||
|
, m_db(Q_NULLPTR)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -34,6 +34,7 @@ KeePass2XmlReader::KeePass2XmlReader()
|
||||||
: m_randomStream(Q_NULLPTR)
|
: m_randomStream(Q_NULLPTR)
|
||||||
, m_db(Q_NULLPTR)
|
, m_db(Q_NULLPTR)
|
||||||
, m_meta(Q_NULLPTR)
|
, m_meta(Q_NULLPTR)
|
||||||
|
, m_tmpParent(Q_NULLPTR)
|
||||||
, m_error(false)
|
, m_error(false)
|
||||||
, m_strictMode(false)
|
, m_strictMode(false)
|
||||||
{
|
{
|
||||||
|
|
|
@ -24,6 +24,7 @@ SymmetricCipherStream::SymmetricCipherStream(QIODevice* baseDevice, SymmetricCip
|
||||||
, m_bufferPos(0)
|
, m_bufferPos(0)
|
||||||
, m_bufferFilling(false)
|
, m_bufferFilling(false)
|
||||||
, m_error(false)
|
, m_error(false)
|
||||||
|
, m_isInitalized(false)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue