From: Jaroslav Kysela Date: Tue, 17 May 2022 12:37:39 +0000 (+0200) Subject: ucm: return empty string for undefined "open" variables (arguments) X-Git-Tag: v1.2.7~33 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=b67257e6fd97e2c8c75c7a7dab5b4644de97a724;p=alsa-lib.git ucm: return empty string for undefined "open" variables (arguments) Signed-off-by: Jaroslav Kysela --- diff --git a/src/ucm/ucm_subs.c b/src/ucm/ucm_subs.c index a7d79430..7bf0aaae 100644 --- a/src/ucm/ucm_subs.c +++ b/src/ucm/ucm_subs.c @@ -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)