From b327ed7872ca83c3a4249039ba1a3d8dd3ece630 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 17 Jan 2017 17:19:19 +0300 Subject: useless field DBEVENTINFO::cbSize removed --- plugins/SMS/src/SMS_svc.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins/SMS/src/SMS_svc.cpp') diff --git a/plugins/SMS/src/SMS_svc.cpp b/plugins/SMS/src/SMS_svc.cpp index 31ccea8fdf..a88d44f33e 100644 --- a/plugins/SMS/src/SMS_svc.cpp +++ b/plugins/SMS/src/SMS_svc.cpp @@ -94,7 +94,7 @@ int ReadMsgSMS(WPARAM, LPARAM lParam) { CLISTEVENT *cle = (CLISTEVENT*)lParam; - DBEVENTINFO dbei = { sizeof(dbei) }; + DBEVENTINFO dbei = {}; if ((dbei.cbBlob = db_event_getBlobSize(((CLISTEVENT*)lParam)->hDbEvent)) == -1) return 1; dbei.pBlob = (PBYTE)_alloca(dbei.cbBlob); @@ -115,7 +115,7 @@ int ReadAckSMS(WPARAM, LPARAM lParam) { CLISTEVENT *cle = (CLISTEVENT*)lParam; - DBEVENTINFO dbei = { sizeof(dbei) }; + DBEVENTINFO dbei = {}; if ((dbei.cbBlob = db_event_getBlobSize(cle->hDbEvent)) == -1) return 1; dbei.pBlob = (PBYTE)_alloca(dbei.cbBlob); @@ -133,7 +133,7 @@ int ReadAckSMS(WPARAM, LPARAM lParam) void RestoreUnreadMessageAlerts(void) { - DBEVENTINFO dbei = { sizeof(dbei) }; + DBEVENTINFO dbei = {}; for (MCONTACT hContact = db_find_first(); hContact; hContact = db_find_next(hContact)) for (MEVENT hDbEvent = db_event_firstUnread(hContact); hDbEvent; hDbEvent = db_event_next(hContact, hDbEvent)) { -- cgit v1.2.3