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
/
target_set.c
diff --git
a/src/target_set.c
b/src/target_set.c
index
a676a3d
..
faad0bf
100644
(file)
--- a/
src/target_set.c
+++ b/
src/target_set.c
@@
-87,13
+87,12
@@
static int ts_create (const oconfig_item_t *ci, void **user_data) /* {{{ */
int status;
int i;
int status;
int i;
- data =
malloc (
sizeof (*data));
+ data =
calloc (1,
sizeof (*data));
if (data == NULL)
{
if (data == NULL)
{
- ERROR ("ts_create:
m
alloc failed.");
+ ERROR ("ts_create:
c
alloc failed.");
return (-ENOMEM);
}
return (-ENOMEM);
}
- memset (data, 0, sizeof (*data));
data->host = NULL;
data->plugin = NULL;
data->host = NULL;
data->plugin = NULL;