ucm: config - change the in-place include evaluation order

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
Jaroslav Kysela 2020-05-20 19:34:15 +02:00
parent 9c88ead1bb
commit f33e596fa6

View file

@ -369,6 +369,10 @@ int uc_mgr_evaluate_inplace(snd_use_case_mgr_t *uc_mgr,
err2 = evaluate_include(uc_mgr, cfg);
if (err2 < 0)
return err2;
/* include may define another variables */
/* conditions may depend on them */
if (err2 == 0)
continue;
err3 = evaluate_condition(uc_mgr, cfg);
if (err3 < 0)
return err3;