mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-12-20 02:32:36 +01: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:
parent
42c5d96219
commit
79ce3f645f
@ -1904,7 +1904,7 @@ static void print_test_stat(void *data, void *user_data)
|
|||||||
|
|
||||||
static void print_results(struct l_queue *test_stat_queue)
|
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];
|
char sep_line[80];
|
||||||
|
|
||||||
memset(sep_line, '_', sizeof(sep_line) - 1);
|
memset(sep_line, '_', sizeof(sep_line) - 1);
|
||||||
|
Loading…
Reference in New Issue
Block a user