summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorTobias Weimer <wishmaster51@googlemail.com>2015-01-10 11:34:39 +0000
committerTobias Weimer <wishmaster51@googlemail.com>2015-01-10 11:34:39 +0000
commitef65d01f2525cf6d52a59c0df06b4f8e4cf924ec (patch)
tree1dab6045e6e84678979df63f019f6c38bdd0426a /plugins
parentac3b68411027e5bcfee79af0c4fb848f3fdcbee8 (diff)
Import:
- Fixed potentially uninitialized variables git-svn-id: http://svn.miranda-ng.org/main/trunk@11811 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins')
-rw-r--r--plugins/Import/src/import.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/plugins/Import/src/import.cpp b/plugins/Import/src/import.cpp
index fe4ee8f943..b0d5cd27c8 100644
--- a/plugins/Import/src/import.cpp
+++ b/plugins/Import/src/import.cpp
@@ -766,8 +766,6 @@ void ImportMeta(DBCachedContact *ccSrc)
static MCONTACT ImportContact(MCONTACT hSrc)
{
- TCHAR id[40], *pszUniqueID;
-
// Check what protocol this contact belongs to
DBCachedContact *cc = srcDb->m_cache->GetCachedContact(hSrc);
if (cc == NULL || cc->szProto == NULL) {
@@ -805,6 +803,7 @@ static MCONTACT ImportContact(MCONTACT hSrc)
}
// Does the contact already exist?
+ TCHAR id[40], *pszUniqueID;
MCONTACT hDst;
switch (dbv.type) {
case DBVT_DWORD:
@@ -817,6 +816,10 @@ static MCONTACT ImportContact(MCONTACT hSrc)
pszUniqueID = NEWTSTR_ALLOCA(_A2T(dbv.pszVal));
hDst = HContactFromID(pda->pa->szModuleName, pszUniqueSetting, pszUniqueID);
break;
+
+ default:
+ hDst = INVALID_CONTACT_ID;
+ pszUniqueID = NULL;
}
if (hDst != INVALID_CONTACT_ID) {