conf: accept '_' character in the variable name

Fixes: https://github.com/alsa-project/alsa-lib/issues/197
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
Jaroslav Kysela 2021-12-07 09:21:24 +01:00
parent 85b3c276d2
commit f44c94f24c

View file

@ -190,7 +190,7 @@ int _snd_eval_string(snd_config_t **dst, const char *s,
} else {
e = s + 1;
while (*e) {
if (!isalnum(*e))
if (!isalnum(*e) && *e != '_')
break;
e++;
}