From 9dff6b9a911c6a6b9c2471e49004c9608cddcc77 Mon Sep 17 00:00:00 2001 From: MikalaiR Date: Sun, 23 Aug 2015 14:31:38 +0000 Subject: git-svn-id: http://svn.miranda-ng.org/main/trunk@15020 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Toaster/src/services.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'plugins/Toaster') diff --git a/plugins/Toaster/src/services.cpp b/plugins/Toaster/src/services.cpp index 180e2ba68b..79e8fba2b0 100644 --- a/plugins/Toaster/src/services.cpp +++ b/plugins/Toaster/src/services.cpp @@ -37,8 +37,7 @@ static void ShowToastNotification(TCHAR* text, TCHAR* title, MCONTACT hContact) eventHandler = new ToastEventHandler(OnToastNotificationClicked, (void*)hContact); const char* szProto = GetContactProto(hContact); - PROTO_AVATAR_INFORMATION pai; - memset(&pai, 0, sizeof(pai)); + PROTO_AVATAR_INFORMATION pai = { 0 }; pai.hContact = hContact; if (ProtoServiceExists(szProto, PS_GETAVATARINFO)) { -- cgit v1.2.3