mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-11 13:30:07 -05:00
bitset: init and clear bitset correctly
This commit is contained in:
parent
a91dea00d0
commit
9d2cf17516
1 changed files with 2 additions and 1 deletions
|
|
@ -45,7 +45,8 @@ bool pa_bitset_equals(const pa_bitset_t *b, unsigned n, ...) {
|
||||||
pa_bitset_t *a;
|
pa_bitset_t *a;
|
||||||
bool equal;
|
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);
|
va_start(ap, n);
|
||||||
for (;;) {
|
for (;;) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue