diff options
-rw-r--r-- | plugins/Toaster/src/services.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
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))
{
|