diff --git a/common/nvramparser.cpp b/common/nvramparser.cpp index d11ea8e..8977e89 100644 --- a/common/nvramparser.cpp +++ b/common/nvramparser.cpp @@ -215,7 +215,7 @@ USTATUS NvramParser::parseNvarStore(const UModelIndex & index) goto parsing_done; } - timestamp = readUnaligned((UINT64*)(tail.constData()) + sizeof(UINT8)); + timestamp = readUnaligned((UINT64*)(tail.constData() + sizeof(UINT8))); hash = tail.mid(sizeof(UINT64) + sizeof(UINT8), SHA256_HASH_SIZE); hasTimestamp = true; hasHash = true; diff --git a/common/treemodel.h b/common/treemodel.h index cc62561..bb2e50f 100644 --- a/common/treemodel.h +++ b/common/treemodel.h @@ -117,7 +117,7 @@ public: UString data(const UModelIndex &index, int role) const; UString headerData(int section, int orientation, int role = 0) const; - TreeModel() { + TreeModel() : markingEnabledFlag(false) { rootItem = new TreeItem(0, Types::Root, 0, UString(), UString(), UString(), UByteArray(), UByteArray(), UByteArray(), TRUE, FALSE); }