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); }