summaryrefslogtreecommitdiff
path: root/src/modules/extraicons/DefaultExtraIcons.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-11-19 19:24:30 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-11-19 19:24:30 +0000
commite06301258eb9730619cd527917965dd2ed82ef7a (patch)
tree135014fe6d8eaff7b58607c99411b4b83369c6a3 /src/modules/extraicons/DefaultExtraIcons.cpp
parent6a519f13155c9012db6fb95f7f48a74029d6e3d2 (diff)
ugly clutch for those blasted extra icons
git-svn-id: http://svn.miranda-ng.org/main/trunk@2380 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/modules/extraicons/DefaultExtraIcons.cpp')
-rw-r--r--src/modules/extraicons/DefaultExtraIcons.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/extraicons/DefaultExtraIcons.cpp b/src/modules/extraicons/DefaultExtraIcons.cpp
index 872c5915cc..6599be7aa6 100644
--- a/src/modules/extraicons/DefaultExtraIcons.cpp
+++ b/src/modules/extraicons/DefaultExtraIcons.cpp
@@ -176,7 +176,7 @@ static void SetExtraIcons(HANDLE hContact)
if (info.db[j + 1] == NULL)
break;
- DBVARIANT dbv = { 0 };
+ DBVARIANT dbv;
if (!DBGetContactSettingString(hContact, info.db[j] == NULL ? proto : info.db[j], info.db[j+1], &dbv)) {
if (!IsEmpty(dbv.pszVal)) {
info.SetIcon(hContact, &info, dbv.pszVal);
@@ -253,8 +253,8 @@ static int DefaultOnClick(WPARAM wParam, LPARAM lParam, LPARAM param)
if (info->db[j + 1] == NULL)
break;
- DBVARIANT dbv = { 0 };
- if (!DBGetContactSettingString(hContact, info->db[j] == NULL ? proto : info->db[j], info->db[j+1], &dbv)) {
+ DBVARIANT dbv;
+ if ( !DBGetContactSettingString(hContact, info->db[j] == NULL ? proto : info->db[j], info->db[j+1], &dbv)) {
if (!IsEmpty(dbv.pszVal)) {
info->OnClick(info, dbv.pszVal);
found = true;