From 99962115431435cf17dfae4d3b7c8d7d55d824bf Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 8 Mar 2019 15:29:44 +0300 Subject: life is too short to remember whether this structure is zeroed or not --- plugins/NewEventNotify/src/popup.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/NewEventNotify/src') 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; -- cgit v1.2.3