git://git.alsa-project.org
/
alsa-lib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0b66de9
)
fix error path in snd_config_hook_load_for_all_cards()
author
Jaroslav Kysela
<perex@perex.cz>
Sun, 25 Nov 2007 22:19:49 +0000
(23:19 +0100)
committer
Jaroslav Kysela
<perex@perex.cz>
Sun, 25 Nov 2007 22:19:49 +0000
(23:19 +0100)
src/conf.c
patch
|
blob
|
history
diff --git
a/src/conf.c
b/src/conf.c
index
16b9c00
..
321dc9a
100644
(file)
--- a/
src/conf.c
+++ b/
src/conf.c
@@
-2897,7
+2897,7
@@
int snd_config_hook_load_for_all_cards(snd_config_t *root, snd_config_t *config,
return err;
if (snd_config_search(root, fdriver, &n) >= 0) {
if (snd_config_get_string(n, &driver) < 0)
-
continue
;
+
goto __err
;
while (1) {
char *s = strchr(driver, '.');
if (s == NULL)
@@
-2905,7
+2905,7
@@
int snd_config_hook_load_for_all_cards(snd_config_t *root, snd_config_t *config,
driver = s + 1;
}
if (snd_config_search(root, driver, &n) >= 0)
-
continue
;
+
goto __err
;
} else {
driver = fdriver;
}