summaryrefslogtreecommitdiff
path: root/plugins/NewEventNotify/src
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2019-03-08 15:29:44 +0300
committerGeorge Hazan <ghazan@miranda.im>2019-03-08 15:29:44 +0300
commit99962115431435cf17dfae4d3b7c8d7d55d824bf (patch)
tree1c80a533f5d3d4ba9d3b894a9a38b9167fe3047e /plugins/NewEventNotify/src
parenta23186175cff579d5aeb231372e87b0b852bdb38 (diff)
life is too short to remember whether this structure is zeroed or not
Diffstat (limited to 'plugins/NewEventNotify/src')
-rw-r--r--plugins/NewEventNotify/src/popup.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/NewEventNotify/src/popup.cpp b/plugins/NewEventNotify/src/popup.cpp
index c556b04c41..0cc9bf7df2 100644
--- a/plugins/NewEventNotify/src/popup.cpp
+++ b/plugins/NewEventNotify/src/popup.cpp
@@ -325,7 +325,7 @@ int PopupShow(MCONTACT hContact, MEVENT hEvent, UINT eventType)
// check if we should report this kind of event
// get the prefered icon as well
// CHANGE: iSeconds is -1 because I use my timer to hide popup
- POPUPDATAW pudw;
+ POPUPDATAW pudw = {};
pudw.iSeconds = -1;
switch (eventType) {
@@ -378,7 +378,7 @@ int PopupShow(MCONTACT hContact, MEVENT hEvent, UINT eventType)
hContact = DbGetAuthEventContact(&dbe);
// set plugin_data ... will be usable within PopupDlgProc
- PLUGIN_DATA *pdata = (PLUGIN_DATA*)mir_alloc(sizeof(PLUGIN_DATA));
+ PLUGIN_DATA *pdata = (PLUGIN_DATA*)mir_calloc(sizeof(PLUGIN_DATA));
pdata->eventType = eventType;
pdata->hContact = hContact;
pdata->countEvent = 1;