mirror of
https://github.com/alsa-project/alsa-utils
synced 2024-11-09 17:15:43 +01:00
alsactl: init() - return error value from snd_card_iterator_sinit() call
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
d6d566a9ee
commit
511dd7a597
1 changed files with 2 additions and 0 deletions
|
@ -1751,6 +1751,8 @@ int init(const char *cfgdir, const char *filename, int flags, const char *cardna
|
|||
|
||||
sysfs_init();
|
||||
err = snd_card_iterator_sinit(&iter, cardname);
|
||||
if (err < 0)
|
||||
goto out;
|
||||
while (snd_card_iterator_next(&iter)) {
|
||||
err = snd_card_clean_cfgdir(cfgdir, iter.card);
|
||||
if (err < 0) {
|
||||
|
|
Loading…
Reference in a new issue