mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-03 09:01:52 -05:00
topology: fix the unitialized tuples
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
712fbacf16
commit
07d779143b
1 changed files with 1 additions and 0 deletions
|
|
@ -601,6 +601,7 @@ static int copy_tuples(struct tplg_elem *elem,
|
||||||
elem->data = priv;
|
elem->data = priv;
|
||||||
|
|
||||||
array = (struct snd_soc_tplg_vendor_array *)(priv->data + off);
|
array = (struct snd_soc_tplg_vendor_array *)(priv->data + off);
|
||||||
|
memset(array, 0, set_size);
|
||||||
array->size = set_size;
|
array->size = set_size;
|
||||||
array->type = tuple_set->type;
|
array->type = tuple_set->type;
|
||||||
array->num_elems = tuple_set->num_tuples;
|
array->num_elems = tuple_set->num_tuples;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue