spectre_netlist: avoid calling get_sym_template() twice

This commit is contained in:
stefan schippers 2026-03-07 22:50:12 +01:00
parent 43e50ff031
commit d38c192675
1 changed files with 1 additions and 1 deletions

View File

@ -577,7 +577,7 @@ int spectre_block_netlist(FILE *fd, int i, int alert)
/* 20081206 new get_sym_template does not return token=value pairs where token listed in extra */
s = get_sym_template(xctx->sym[i].templ, extra);
if(s && s[0] && strchr(s, '=')) {
fprintf(fd, "\nparameters %s", get_sym_template(xctx->sym[i].templ, extra));
fprintf(fd, "\nparameters %s", s);
}
my_free(_ALLOC_ID_, &extra);
fprintf(fd, "\n");