summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 72f3b39)
raw | patch | inline | side by side (parent: 72f3b39)
author | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Fri, 1 Apr 2016 14:29:53 +0000 (16:29 +0200) | ||
committer | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Fri, 1 Apr 2016 14:29:53 +0000 (16:29 +0200) |
src/gmond.c | patch | blob | history |
diff --git a/src/gmond.c b/src/gmond.c
index 9b5ceb76e1600946bf06007f1126ef2e0b150cd4..c763cd9686e48f4f456abeb44bce3cd050c4f0fc 100644 (file)
--- a/src/gmond.c
+++ b/src/gmond.c
return (se);
/* insert new entry */
- se = malloc (sizeof (*se));
+ se = calloc (1, sizeof (*se));
if (se == NULL)
return (NULL);
- memset (se, 0, sizeof (*se));
sstrncpy (se->key, key, sizeof (se->key));
se->flags = 0;