summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 952a2f3)
raw | patch | inline | side by side (parent: 952a2f3)
author | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Fri, 1 Apr 2016 13:49:57 +0000 (15:49 +0200) | ||
committer | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Fri, 1 Apr 2016 13:49:57 +0000 (15:49 +0200) |
src/dns.c | patch | blob | history |
diff --git a/src/dns.c b/src/dns.c
index f48be00968d856236a95282f5d7f56a192213290..53fa725e00786ba6dede47e748a76336c4e86b91 100644 (file)
--- a/src/dns.c
+++ b/src/dns.c
{
counter_list_t *entry;
- entry = malloc (sizeof (*entry));
+ entry = calloc (1, sizeof (*entry));
if (entry == NULL)
return (NULL);
- memset (entry, 0, sizeof (counter_list_t));
entry->key = key;
entry->value = value;