diff --git a/src/format/KeePass1Reader.cpp b/src/format/KeePass1Reader.cpp index 2e8677e3d..1390d2021 100644 --- a/src/format/KeePass1Reader.cpp +++ b/src/format/KeePass1Reader.cpp @@ -391,8 +391,8 @@ Group* KeePass1Reader::readGroup(QIODevice* cipherStream) TimeInfo timeInfo; - quint32 groupId; - quint32 groupLevel; + quint32 groupId = 0; + quint32 groupLevel = 0; bool groupIdSet = false; bool groupLevelSet = false; diff --git a/src/format/KeePass2XmlReader.cpp b/src/format/KeePass2XmlReader.cpp index c64811108..df62daf50 100644 --- a/src/format/KeePass2XmlReader.cpp +++ b/src/format/KeePass2XmlReader.cpp @@ -741,7 +741,7 @@ void KeePass2XmlReader::parseEntryString(Entry* entry) QString key; QString value; - bool protect; + bool protect = false; bool keySet = false; bool valueSet = false;