fix crypted MMKV load error for iOS #529

This commit is contained in:
guoling
2020-10-21 16:16:14 +08:00
parent a29ddb0224
commit edb4d7f8a9
+1 -1
View File
@@ -136,7 +136,7 @@ void MiniPBCoder::decodeOneMap(MMKVMapCrypt &dic, size_t position, bool greedy)
const auto &key = m_inputDataDecrpt->readString(kvHolder);
if (key.length > 0) {
m_inputDataDecrpt->readData(kvHolder);
if (kvHolder.valueSize > 0) {
if (kvHolder.realValueSize() > 0) {
dictionary[key] = move(kvHolder);
[key retain];
} else {