From a9b35252b4b82f05bf80a39e212b61a51e6fef30 Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Fri, 28 Jan 2022 18:07:46 +0100 Subject: [PATCH] topology: don't fail when Define section is missing in the included file Signed-off-by: Jaroslav Kysela --- topology/pre-processor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/topology/pre-processor.c b/topology/pre-processor.c index 5278240..f32f80c 100644 --- a/topology/pre-processor.c +++ b/topology/pre-processor.c @@ -409,7 +409,7 @@ static int pre_process_include_conf(struct tplg_pre_processor *tplg_pp, snd_conf /* forcefully overwrite with defines from the command line */ ret = pre_process_add_defines(tplg_pp, *new); - if (ret < 0) { + if (ret < 0 && ret != -ENOENT) { fprintf(stderr, "Failed to parse arguments in input config\n"); goto err; } -- 2.47.1