OSDN Git Service

ucm: substitute the comment string also in the main configuration file
authorJaroslav Kysela <perex@perex.cz>
Tue, 6 Oct 2020 08:43:38 +0000 (10:43 +0200)
committerJaroslav Kysela <perex@perex.cz>
Tue, 6 Oct 2020 08:43:38 +0000 (10:43 +0200)
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
src/ucm/parser.c

index e57e208..8af232d 100644 (file)
@@ -1873,7 +1873,7 @@ static int parse_master_file(snd_use_case_mgr_t *uc_mgr, snd_config_t *cfg)
                        continue;
 
                if (strcmp(id, "Comment") == 0) {
-                       err = parse_string(n, &uc_mgr->comment);
+                       err = parse_string_substitute3(uc_mgr, n, &uc_mgr->comment);
                        if (err < 0) {
                                uc_error("error: failed to get master comment");
                                return err;