X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Futils_latency.c;h=893bded3b9b387187adbab01eb55e6134001488e;hb=4d04d3b7e32b8777f7c7b04110b74194b991fbea;hp=dfdef6115f249f1c9f66a74467192a667e94a325;hpb=7217dd3b1beba4ebecf44840582656458ddf2969;p=collectd.git diff --git a/src/utils_latency.c b/src/utils_latency.c index dfdef611..893bded3 100644 --- a/src/utils_latency.c +++ b/src/utils_latency.c @@ -117,6 +117,7 @@ latency_counter_t *latency_counter_create () /* {{{ */ lc = malloc (sizeof (*lc)); if (lc == NULL) return (NULL); + memset (lc, 0, sizeof (*lc)); latency_counter_reset (lc); lc->bin_width = HISTOGRAM_DEFAULT_BIN_WIDTH;