summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: b15ebef)
raw | patch | inline | side by side (parent: b15ebef)
author | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Mon, 28 Mar 2016 17:40:12 +0000 (19:40 +0200) | ||
committer | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Mon, 28 Mar 2016 17:40:12 +0000 (19:40 +0200) |
src/apache.c | patch | blob | history |
diff --git a/src/apache.c b/src/apache.c
index 38035caa22e94cfdeeaac8ef1047ddf443a40fdd..baa6081a6046743679a6949b16d2f07e347aed24 100644 (file)
--- a/src/apache.c
+++ b/src/apache.c
int i;
int status;
- st = malloc (sizeof (*st));
+ st = calloc (1, sizeof (*st));
if (st == NULL)
{
- ERROR ("apache plugin: malloc failed.");
+ ERROR ("apache plugin: calloc failed.");
return (-1);
}
- memset (st, 0, sizeof (*st));
st->timeout = -1;