mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-04 13:30:08 -05:00
a set of fixes to reduce gcc warnings
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
345843fc24
commit
7f084af4e4
7 changed files with 13 additions and 9 deletions
|
|
@ -888,7 +888,7 @@ int tplg_add_enum(snd_tplg_t *tplg, struct snd_tplg_enum_template *enum_ctl,
|
|||
|
||||
if (enum_ctl->values != NULL) {
|
||||
for (i = 0; i < num_items; i++) {
|
||||
if (enum_ctl->values[i])
|
||||
if (enum_ctl->values[i] == NULL)
|
||||
continue;
|
||||
|
||||
memcpy(&ec->values[i * sizeof(int) * ENUM_VAL_SIZE],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue