projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Treewide: cleanup whitespace
[collectd.git]
/
src
/
apache.c
diff --git
a/src/apache.c
b/src/apache.c
index
38035ca
..
baa6081
100644
(file)
--- a/
src/apache.c
+++ b/
src/apache.c
@@
-175,13
+175,12
@@
static int config_add (oconfig_item_t *ci)
int i;
int status;
int i;
int status;
- st =
malloc (
sizeof (*st));
+ st =
calloc (1,
sizeof (*st));
if (st == NULL)
{
if (st == NULL)
{
- ERROR ("apache plugin:
m
alloc failed.");
+ ERROR ("apache plugin:
c
alloc failed.");
return (-1);
}
return (-1);
}
- memset (st, 0, sizeof (*st));
st->timeout = -1;
st->timeout = -1;