mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-06 13:29:59 -05:00
ucm: return empty string for undefined "open" variables (arguments)
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
5062565e82
commit
b67257e6fd
1 changed files with 2 additions and 0 deletions
|
|
@ -559,6 +559,8 @@ static char *rval_var(snd_use_case_mgr_t *uc_mgr, const char *id)
|
|||
if (id[0] == '-') {
|
||||
ignore_not_found = true;
|
||||
id++;
|
||||
} else if (id[0] == '@') {
|
||||
ignore_not_found = true;
|
||||
}
|
||||
v = uc_mgr_get_variable(uc_mgr, id);
|
||||
if (v == NULL && ignore_not_found)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue