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/Exchange/src/emails.cpp | 5 +---- plugins/Exchange/src/utils.cpp | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) (limited to 'plugins/Exchange/src') 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); -- cgit v1.2.3