Browse Source

inp.c, bug fix, commit "allow 'temper' keyword in .param, .model and device instance lines ..."

don't overwrite struct pt_temper.expression,
  to allow free'ing this string.
pre-master-46
rlar 9 years ago
parent
commit
12de713ff5
  1. 12
      src/frontend/inp.c

12
src/frontend/inp.c

@ -1564,11 +1564,15 @@ inp_parse_temper_trees(void)
{
struct pt_temper *d;
for(d = devtlist; d; d = d->next)
INPgetTree(&d->expression, &d->pt, ft_curckt->ci_ckt, NULL);
for(d = devtlist; d; d = d->next) {
char *expression = d->expression;
INPgetTree(&expression, &d->pt, ft_curckt->ci_ckt, NULL);
}
for(d = modtlist; d; d = d->next)
INPgetTree(&d->expression, &d->pt, ft_curckt->ci_ckt, NULL);
for(d = modtlist; d; d = d->next) {
char *expression = d->expression;
INPgetTree(&expression, &d->pt, ft_curckt->ci_ckt, NULL);
}
}

Loading…
Cancel
Save