]> git.alsa-project.org Git - alsa-lib.git/commitdiff
ucm: return empty string for undefined "open" variables (arguments)
authorJaroslav Kysela <perex@perex.cz>
Tue, 17 May 2022 12:37:39 +0000 (14:37 +0200)
committerJaroslav Kysela <perex@perex.cz>
Tue, 17 May 2022 12:37:41 +0000 (14:37 +0200)
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
src/ucm/ucm_subs.c

index a7d79430cadd1fe09ac925e798db6c158fb78e7f..7bf0aaae633ebe3f294421ab46635fd4623e55df 100644 (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)