diff options
author | George Hazan <george.hazan@gmail.com> | 2015-03-16 19:50:57 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2015-03-16 19:50:57 +0000 |
commit | bd0005cee76dccdceca1d9ecbb1bdf6e20c31b29 (patch) | |
tree | 1be17d87a8c4a4c503e654885c38ae3658dfe588 /plugins/Dbx_kv | |
parent | 0d9dbbb4ff098191584cf73443b8d2cde6c2b11e (diff) |
fix for merging subs in MC
git-svn-id: http://svn.miranda-ng.org/main/trunk@12417 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Dbx_kv')
-rw-r--r-- | plugins/Dbx_kv/src/dbcontacts.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/Dbx_kv/src/dbcontacts.cpp b/plugins/Dbx_kv/src/dbcontacts.cpp index 41c24e9f70..88fba5b5d1 100644 --- a/plugins/Dbx_kv/src/dbcontacts.cpp +++ b/plugins/Dbx_kv/src/dbcontacts.cpp @@ -146,7 +146,7 @@ BOOL CDbxKV::MetaMergeHistory(DBCachedContact *ccMeta, DBCachedContact *ccSub) {
DBEventSortingKey keyVal = { ccSub->contactID, 0, 0 }, insVal = { ccMeta->contactID, 0, 0 };
ham_key_t key = { sizeof(keyVal), &keyVal }, key2 = { sizeof(insVal), &insVal };
- ham_record_t data;
+ ham_record_t data = { 0 };
cursor_ptr cursor(m_dbEventsSort);
if (ham_cursor_find(cursor, &key, &data, HAM_FIND_GT_MATCH) != HAM_SUCCESS)
@@ -177,7 +177,7 @@ BOOL CDbxKV::MetaSplitHistory(DBCachedContact *ccMeta, DBCachedContact *ccSub) {
DBEventSortingKey keyVal = { ccSub->contactID, 0, 0 }, delVal = { ccMeta->contactID, 0, 0 };
ham_key_t key = { sizeof(keyVal), &keyVal }, key2 = { sizeof(delVal), &delVal };
- ham_record_t data;
+ ham_record_t data = { 0 };
cursor_ptr cursor(m_dbEventsSort);
if (ham_cursor_find(cursor, &key, &data, HAM_FIND_GT_MATCH) != HAM_SUCCESS)
|