From bd0005cee76dccdceca1d9ecbb1bdf6e20c31b29 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 16 Mar 2015 19:50:57 +0000 Subject: fix for merging subs in MC git-svn-id: http://svn.miranda-ng.org/main/trunk@12417 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Dbx_kv/src/dbcontacts.cpp | 4 ++-- 1 file 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) -- cgit v1.2.3