mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2026-02-04 04:06:26 -05:00
ucm: fix the DefineRegex issue where multiple variables were set to empty string
It is not required to set variables in undefined groups to empty string. Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
ae921dc1c9
commit
5ed27d8e89
1 changed files with 1 additions and 1 deletions
|
|
@ -73,7 +73,7 @@ static int set_variables(snd_use_case_mgr_t *uc_mgr, const char *data,
|
|||
if (err < 0)
|
||||
return err;
|
||||
for (i = 1; i < match_size; i++) {
|
||||
if (match[0].rm_so < 0 || match[0].rm_eo < 0)
|
||||
if (match[i].rm_so < 0 || match[i].rm_eo < 0)
|
||||
return 0;
|
||||
s = extract_substring(data, &match[i]);
|
||||
if (s == NULL)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue