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:
Felix Geyer 2015-05-14 16:58:53 +02:00
parent c535736853
commit 7a2c02f0df
4 changed files with 13 additions and 2 deletions

View File

@ -49,7 +49,12 @@ private:
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)
{
}

View File

@ -33,8 +33,12 @@
#include "streams/SymmetricCipherStream.h"
KeePass2Reader::KeePass2Reader()
: m_error(false)
: m_device(Q_NULLPTR)
, m_headerStream(Q_NULLPTR)
, m_error(false)
, m_headerEnd(false)
, m_saveXml(false)
, m_db(Q_NULLPTR)
{
}

View File

@ -34,6 +34,7 @@ KeePass2XmlReader::KeePass2XmlReader()
: m_randomStream(Q_NULLPTR)
, m_db(Q_NULLPTR)
, m_meta(Q_NULLPTR)
, m_tmpParent(Q_NULLPTR)
, m_error(false)
, m_strictMode(false)
{

View File

@ -24,6 +24,7 @@ SymmetricCipherStream::SymmetricCipherStream(QIODevice* baseDevice, SymmetricCip
, m_bufferPos(0)
, m_bufferFilling(false)
, m_error(false)
, m_isInitalized(false)
{
}