mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-10 13:30:01 -05:00
coverity fixes
This commit is contained in:
parent
0f4f48d377
commit
df20aa2a1e
5 changed files with 8 additions and 3 deletions
|
|
@ -888,6 +888,8 @@ static int snd_pcm_multi_set_chmap(snd_pcm_t *pcm, const snd_pcm_chmap_t *map)
|
|||
slave_maps[i] = calloc(multi->slaves[i].channels_count + 1,
|
||||
sizeof(int));
|
||||
if (!slave_maps[i]) {
|
||||
for (i++; i < multi->slaves_count; i++)
|
||||
slave_maps[i] = NULL;
|
||||
err = -ENOMEM;
|
||||
goto error;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue