diff options
author | George Hazan <george.hazan@gmail.com> | 2013-10-10 19:27:36 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-10-10 19:27:36 +0000 |
commit | 0a5ecdca431066463416d724bad1bb0ee0cfe94a (patch) | |
tree | ebb8b02f1130676abdc8224a29a9b02b8cc1ccae /src/modules | |
parent | 302abe573a8256d8c813af8f55d436e7b1c1dfb6 (diff) |
calloc rulez
git-svn-id: http://svn.miranda-ng.org/main/trunk@6432 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/database/dbutils.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
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);
|