index 40dd0eaad7563114c63936a922d3a74da8df2b1d..60273382dec81950cfa61a2273d3103f79a8f664 100644 (file)
--- a/src/daemon/utils_llist.c
+++ b/src/daemon/utils_llist.c
* Florian Forster <octo at collectd.org>
*/
-#include "config.h"
-
#include <stdlib.h>
#include <string.h>
{
llist_t *ret;
- ret = malloc (sizeof (*ret));
+ ret = calloc (1, sizeof (*ret));
if (ret == NULL)
return (NULL);
- memset (ret, '\0', sizeof (llist_t));
-
return (ret);
}