3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-10-03 01:48:49 +02:00

t-runner: init stat totals

the stat_totals structure was not initialized and produced
a garbage output when printed
This commit is contained in:
Tim Kourt 2018-05-10 15:38:19 -07:00 committed by Denis Kenzior
parent 42c5d96219
commit 79ce3f645f

View File

@ -1904,7 +1904,7 @@ static void print_test_stat(void *data, void *user_data)
static void print_results(struct l_queue *test_stat_queue)
{
struct stat_totals stat_totals;
struct stat_totals stat_totals = { 0, 0, 0, 0 };
char sep_line[80];
memset(sep_line, '_', sizeof(sep_line) - 1);