diff options
author | George Hazan <ghazan@miranda.im> | 2019-03-08 15:29:44 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2019-03-08 15:29:44 +0300 |
commit | 99962115431435cf17dfae4d3b7c8d7d55d824bf (patch) | |
tree | 1c80a533f5d3d4ba9d3b894a9a38b9167fe3047e /plugins/Alarms/src | |
parent | a23186175cff579d5aeb231372e87b0b852bdb38 (diff) |
life is too short to remember whether this structure is zeroed or not
Diffstat (limited to 'plugins/Alarms/src')
-rwxr-xr-x | plugins/Alarms/src/alarmlist.cpp | 2 | ||||
-rw-r--r-- | plugins/Alarms/src/alarms.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/plugins/Alarms/src/alarmlist.cpp b/plugins/Alarms/src/alarmlist.cpp index 1492a0f36b..f6d8d33b52 100755 --- a/plugins/Alarms/src/alarmlist.cpp +++ b/plugins/Alarms/src/alarmlist.cpp @@ -615,7 +615,7 @@ void ShowPopup(ALARM *alarm) memset(data, 0, sizeof(ALARM));
copy_alarm_data(data, alarm);
- POPUPDATAW ppd = { 0 };
+ POPUPDATAW ppd;
ppd.lchIcon = hIconMenuSet;
mir_wstrncpy(ppd.lpwzContactName, data->szTitle, MAX_CONTACTNAME);
mir_wstrncpy(ppd.lpwzText, data->szDesc, MAX_SECONDLINE);
diff --git a/plugins/Alarms/src/alarms.cpp b/plugins/Alarms/src/alarms.cpp index 3985bd50fc..ae695c54a6 100644 --- a/plugins/Alarms/src/alarms.cpp +++ b/plugins/Alarms/src/alarms.cpp @@ -62,7 +62,7 @@ void ShowPopup(MCONTACT hContact, const wchar_t *msg) {
wchar_t *lpzContactName = Clist_GetContactDisplayName(hContact);
- POPUPDATAW ppd = { 0 };
+ POPUPDATAW ppd;
ppd.lchContact = hContact; //Be sure to use a GOOD handle, since this will not be checked.
ppd.lchIcon = hIconList1;
mir_wstrncpy(ppd.lpwzContactName, lpzContactName, MAX_CONTACTNAME);
|