X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Futils_latency.c;h=c6a1ff6669185746d9ea1da8e0e56553946f10d9;hb=08a2128ac248150b50f9c54c9c71f573e54df3c3;hp=7f60e11da80796466819241d4966d0c31bb5bf69;hpb=cb314c15d51352ebcc4cfd2bbf1d6a3042c2402f;p=collectd.git diff --git a/src/utils_latency.c b/src/utils_latency.c index 7f60e11d..c6a1ff66 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;