1
0
mirror of git://projects.qi-hardware.com/eda-tools.git synced 2024-11-22 16:59:43 +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 */
res = substitute(sub, vars, &out);
free_vars(vars);
if (res)
b->vars = out;
else
if (res) {
b->vars = merge_vars(vars, out);
free_vars(out);
} else {
n_bom--;
}
free_vars(vars);
return res;
}