From 47e1dd8152a4f1ca7572410cba098bd71c5704ce Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Thu, 18 Jun 2015 17:45:52 +0200 Subject: [PATCH] src/utils_latency.c: Fix "Assigned value is garbage or undefined" warning. --- src/utils_latency.c | 1 + 1 file changed, 1 insertion(+) 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; -- 2.30.2