X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Futils_latency.c;h=893bded3b9b387187adbab01eb55e6134001488e;hb=20f29799747d983f74feec56cd48c408e3314770;hp=dfdef6115f249f1c9f66a74467192a667e94a325;hpb=9b43c4ca7442e7886c1fbe339ce57f297872269f;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;