summaryrefslogtreecommitdiff
path: root/plugins/Exchange/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/Exchange/src
parenta23186175cff579d5aeb231372e87b0b852bdb38 (diff)
life is too short to remember whether this structure is zeroed or not
Diffstat (limited to 'plugins/Exchange/src')
-rw-r--r--plugins/Exchange/src/emails.cpp5
-rw-r--r--plugins/Exchange/src/utils.cpp2
2 files changed, 2 insertions, 5 deletions
diff --git a/plugins/Exchange/src/emails.cpp b/plugins/Exchange/src/emails.cpp
index 93e5f1d19a..73b68242a4 100644
--- a/plugins/Exchange/src/emails.cpp
+++ b/plugins/Exchange/src/emails.cpp
@@ -303,10 +303,7 @@ int ShowMessage(wchar_t *message, int cUnreadEmails)
int ShowPopupMessage(wchar_t *title, wchar_t *message, int cUnreadEmails)
{
- POPUPDATAW popup = {0};
- popup.lchContact = NULL;
- popup.colorBack = NULL;
- popup.colorText = NULL;
+ POPUPDATAW popup;
popup.lchIcon = hiMailIcon;
wcsncpy_s(popup.lpwzContactName, MAX_CONTACTNAME, title, _TRUNCATE);
wcsncpy_s(popup.lpwzText, MAX_SECONDLINE, message, _TRUNCATE);
diff --git a/plugins/Exchange/src/utils.cpp b/plugins/Exchange/src/utils.cpp
index b5459483ef..a4f7efb340 100644
--- a/plugins/Exchange/src/utils.cpp
+++ b/plugins/Exchange/src/utils.cpp
@@ -220,7 +220,7 @@ int ThreadCheckEmail(int bForceAttempt)
void _popupUtil(wchar_t* szMsg)
{
- POPUPDATAW ppd = { 0 };
+ POPUPDATAW ppd;
ppd.lchIcon = hiMailIcon;
wcsncpy(ppd.lpwzContactName, L"Exchange notifier", MAX_CONTACTNAME - 1);
wcsncpy(ppd.lpwzText, szMsg, MAX_SECONDLINE - 1);