From 0a5ecdca431066463416d724bad1bb0ee0cfe94a Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 10 Oct 2013 19:27:36 +0000 Subject: calloc rulez git-svn-id: http://svn.miranda-ng.org/main/trunk@6432 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- src/modules/database/dbutils.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src') diff --git a/src/modules/database/dbutils.cpp b/src/modules/database/dbutils.cpp index 4e88e1fcce..8281eb27f0 100644 --- a/src/modules/database/dbutils.cpp +++ b/src/modules/database/dbutils.cpp @@ -41,15 +41,11 @@ static INT_PTR DbEventTypeRegister(WPARAM, LPARAM lParam) { DBEVENTTYPEDESCR* et = (DBEVENTTYPEDESCR*)lParam; if (eventTypes.getIndex(et) == -1) { - DBEVENTTYPEDESCR* p = (DBEVENTTYPEDESCR*)mir_alloc(sizeof(DBEVENTTYPEDESCR)); + DBEVENTTYPEDESCR* p = (DBEVENTTYPEDESCR*)mir_calloc(sizeof(DBEVENTTYPEDESCR)); p->cbSize = DBEVENTTYPEDESCR_SIZE; p->module = mir_strdup(et->module); p->eventType = et->eventType; p->descr = mir_strdup(et->descr); - p->textService = NULL; - p->iconService = NULL; - p->eventIcon = NULL; - p->flags = 0; if (et->cbSize == DBEVENTTYPEDESCR_SIZE) { if (et->textService) p->textService = mir_strdup(et->textService); -- cgit v1.2.3