From 3b1493a6bce89eba156730bbf0e110911585fe58 Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Wed, 11 Oct 2023 12:57:21 -0400 Subject: [PATCH] MT#55283 fix possible use without initialiser Change-Id: I7d08d549aedc3c6b5075062d898c3726902fe302 --- perf-tester/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/perf-tester/main.c b/perf-tester/main.c index 86a5801d5c..9c04990e76 100644 --- a/perf-tester/main.c +++ b/perf-tester/main.c @@ -1094,7 +1094,7 @@ static void worker_stats(struct worker *w, int idx, int starty, int height, int int maxx, struct stats *totals) { - struct stats stats; + struct stats stats = {0}; worker_collect(w, &stats); workers_totals(&stats, totals); @@ -1639,7 +1639,7 @@ static void delay_measure_workers(uint milliseconds, struct stats *totals) { LOCK(&workers_lock); for (GList *l = workers.head; l; l = l->next) { struct worker *w = l->data; - struct stats stats; + struct stats stats = {0}; worker_collect(w, &stats); workers_totals(&stats, totals); }