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 --- protocols/WebView/src/webview_alerts.cpp | 2 +- protocols/WebView/src/webview_opts.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'protocols/WebView/src') diff --git a/protocols/WebView/src/webview_alerts.cpp b/protocols/WebView/src/webview_alerts.cpp index 776b100181..d03742bdb9 100644 --- a/protocols/WebView/src/webview_alerts.cpp +++ b/protocols/WebView/src/webview_alerts.cpp @@ -111,7 +111,7 @@ int WAlertOSD(MCONTACT hContact, wchar_t *displaytext) /*****************************************************************************/ int PopupAlert(WPARAM hContact, LPARAM lParam) { - POPUPDATAW ppd = { 0 }; + POPUPDATAW ppd; if (hContact != 0) mir_wstrncpy(ppd.lpwzContactName, ptrW(g_plugin.getWStringA(hContact, PRESERVE_NAME_KEY)), _countof(ppd.lpwzContactName)); diff --git a/protocols/WebView/src/webview_opts.cpp b/protocols/WebView/src/webview_opts.cpp index 35b47b8110..9d9a75830d 100644 --- a/protocols/WebView/src/webview_opts.cpp +++ b/protocols/WebView/src/webview_opts.cpp @@ -187,7 +187,7 @@ INT_PTR CALLBACK DlgPopUpOpts(HWND hdlg, UINT msg, WPARAM wParam, LPARAM lParam) case IDC_PREVIEW: wchar_t str3[512]; - POPUPDATAW ppd = { 0 }; + POPUPDATAW ppd; GetDlgItemText(hdlg, IDC_DELAY, str3, _countof(str3)); -- cgit v1.2.3