mirror of
https://github.com/alsa-project/alsa-utils
synced 2024-11-08 18:35:41 +01:00
alsactl: fix the error path in set_controls()
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
90f5967178
commit
fca9d89bbc
1 changed files with 1 additions and 1 deletions
|
@ -1580,7 +1580,7 @@ static int set_controls(int card, snd_config_t *top, int doit)
|
|||
}
|
||||
|
||||
_free:
|
||||
if (count >= 0)
|
||||
if (count > 0)
|
||||
snd_ctl_elem_list_free_space(list);
|
||||
_close:
|
||||
snd_ctl_close(handle);
|
||||
|
|
Loading…
Reference in a new issue