diff --git a/src/target_set.c b/src/target_set.c
index 6115639b5bcd73679b41f4a5623b0f38b43cbd69..fee5ffdcbaac2e09e719cd9d9460f5f3cc21de7f 100644 (file)
--- a/src/target_set.c
+++ b/src/target_set.c
**/
#include "collectd.h"
+
#include "common.h"
#include "filter_chain.h"
{
ts_data_t *data;
int status;
- int i;
data = calloc (1, sizeof (*data));
if (data == NULL)
data->meta = NULL;
status = 0;
- for (i = 0; i < ci->children_num; i++)
+ for (int i = 0; i < ci->children_num; i++)
{
oconfig_item_t *child = ci->children + i;
void module_register (void)
{
- target_proc_t tproc;
+ target_proc_t tproc = { 0 };
- memset (&tproc, 0, sizeof (tproc));
tproc.create = ts_create;
tproc.destroy = ts_destroy;
tproc.invoke = ts_invoke;