diff --git a/unit/test-band.c b/unit/test-band.c index 757db377..0dd9b67b 100644 --- a/unit/test-band.c +++ b/unit/test-band.c @@ -52,6 +52,8 @@ static struct band *new_band() /* band + 8 basic rates */ struct band *band = l_malloc(sizeof(struct band) + 8); + memset(band, 0, sizeof(struct band) + 8); + band->supported_rates_len = 8; band->supported_rates[0] = 12; band->supported_rates[1] = 18;