1
0
mirror of git://projects.qi-hardware.com/eda-tools.git synced 2024-11-22 22:15:19 +02:00

b2/bom.c (bom_subst): include input variables in the part's list of variables

This commit is contained in:
Werner Almesberger 2012-05-24 00:09:20 -03:00
parent 1e21ea8a40
commit 2ce3b7f82b

View File

@ -146,11 +146,13 @@ int bom_subst(struct bom *b, const struct subst *sub)
/* run substitutions */ /* run substitutions */
res = substitute(sub, vars, &out); res = substitute(sub, vars, &out);
free_vars(vars); if (res) {
if (res) b->vars = merge_vars(vars, out);
b->vars = out; free_vars(out);
else } else {
n_bom--; n_bom--;
}
free_vars(vars);
return res; return res;
} }