ucm: return empty string for undefined "open" variables (arguments)

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
Jaroslav Kysela 2022-05-17 14:37:39 +02:00
parent 5062565e82
commit b67257e6fd

View file

@ -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)