Skip to content

Commit

Permalink
MT#55283 fix possible use without initialiser
Browse files Browse the repository at this point in the history
Change-Id: I7d08d549aedc3c6b5075062d898c3726902fe302
  • Loading branch information
rfuchs committed Oct 11, 2023
1 parent 5171fd8 commit 3b1493a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions perf-tester/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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);
}
Expand Down

0 comments on commit 3b1493a

Please sign in to comment.