X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Ftarget_scale.c;h=8659c8d7ba63fdaed6658ab48fb6cbea041ac49f;hb=063a5e75b36173e89ffa18d32d47509f6ef968ec;hp=74652ff81dbeeb6452f0fce8c2d01768e10d3836;hpb=b81104a423234c04f0eb4ace0ec5e93a363c917a;p=collectd.git diff --git a/src/target_scale.c b/src/target_scale.c index 74652ff8..8659c8d7 100644 --- a/src/target_scale.c +++ b/src/target_scale.c @@ -25,6 +25,7 @@ **/ #include "collectd.h" + #include "common.h" #include "filter_chain.h" @@ -490,9 +491,8 @@ static int ts_invoke (const data_set_t *ds, value_list_t *vl, /* {{{ */ 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;