mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2026-02-28 01:40:08 -05:00
coverity.com fixes - initial round
This commit tries to fix a bunch of issues found by coverity.com. Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
f0679e5de2
commit
47f4f9b73b
40 changed files with 283 additions and 133 deletions
|
|
@ -1111,7 +1111,7 @@ int tplg_add_enum(snd_tplg_t *tplg, struct snd_tplg_enum_template *enum_ctl,
|
|||
if (enum_ctl->values[i] == NULL)
|
||||
continue;
|
||||
|
||||
memcpy(&ec->values[i * sizeof(int) * ENUM_VAL_SIZE],
|
||||
memcpy(&ec->values[i * ENUM_VAL_SIZE],
|
||||
enum_ctl->values[i],
|
||||
sizeof(int) * ENUM_VAL_SIZE);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue