bitset: init and clear bitset correctly

This commit is contained in:
Wim Taymans 2018-10-09 17:30:37 +02:00
parent a91dea00d0
commit 9d2cf17516

View file

@ -45,7 +45,8 @@ bool pa_bitset_equals(const pa_bitset_t *b, unsigned n, ...) {
pa_bitset_t *a;
bool equal;
a = alloca(PA_BITSET_ELEMENTS(n));
a = alloca(PA_BITSET_SIZE(n));
spa_memzero(a, PA_BITSET_SIZE(n));
va_start(ap, n);
for (;;) {