summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f43b86a)
raw | patch | inline | side by side (parent: f43b86a)
author | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Fri, 1 Apr 2016 16:10:07 +0000 (18:10 +0200) | ||
committer | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Fri, 1 Apr 2016 16:10:07 +0000 (18:10 +0200) |
src/powerdns.c | patch | blob | history |
diff --git a/src/powerdns.c b/src/powerdns.c
index e80ca8a538cbf98e3555634887e5bd20c5a61a68..1c41ff8d62ab31a5dca62ee5ac5f0746b8c2ad89 100644 (file)
--- a/src/powerdns.c
+++ b/src/powerdns.c
return (-1);
}
- item = malloc (sizeof (*item));
+ item = calloc (1, sizeof (*item));
if (item == NULL)
{
- ERROR ("powerdns plugin: malloc failed.");
+ ERROR ("powerdns plugin: calloc failed.");
return (-1);
}
- memset (item, '\0', sizeof (list_item_t));
item->instance = strdup (ci->values[0].value.string);
if (item->instance == NULL)