mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-06 13:29:59 -05:00
namehint: improve the previous patch (check the returned value)
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
5ee5ef31b5
commit
6055f8a584
1 changed files with 2 additions and 1 deletions
|
|
@ -349,7 +349,8 @@ static int try_config(snd_config_t *config,
|
||||||
if (snd_config_search(res, "@args", &cfg) >= 0) {
|
if (snd_config_search(res, "@args", &cfg) >= 0) {
|
||||||
snd_config_for_each(i, next, cfg) {
|
snd_config_for_each(i, next, cfg) {
|
||||||
/* skip the argument list */
|
/* skip the argument list */
|
||||||
snd_config_get_id(snd_config_iterator_entry(i), &str);
|
if (snd_config_get_id(snd_config_iterator_entry(i), &str) < 0)
|
||||||
|
continue;
|
||||||
while (*str && *str >= '0' && *str <= '9') str++;
|
while (*str && *str >= '0' && *str <= '9') str++;
|
||||||
if (*str == '\0')
|
if (*str == '\0')
|
||||||
continue;
|
continue;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue