From 4ff9c0c16611afb89b08ed330058e868395b58a3 Mon Sep 17 00:00:00 2001 From: rlar Date: Sat, 24 Jun 2017 19:44:35 +0200 Subject: [PATCH] inpcom.c, inp_chk_for_multi_in_vcvs(), #6/6, drop 'model_card' --- src/frontend/inpcom.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/frontend/inpcom.c b/src/frontend/inpcom.c index 1c9b8c1e2..7c98a04a9 100644 --- a/src/frontend/inpcom.c +++ b/src/frontend/inpcom.c @@ -1242,7 +1242,6 @@ inp_chk_for_multi_in_vcvs(struct line *c, int *line_number) (fcn_b = strstr(line, "or(")) != NULL) && isspace_c(fcn_b[-1])) { - struct line *model_card; char keep, *comma_ptr, *xy_values1[5], *xy_values2[5]; char *out_str, *ctrl_nodes_str, *xy_values1_b, *ref_str, *fcn_name, *fcn_e, *out_b, *out_e, *ref_e; char *m_instance, *m_model; @@ -1352,10 +1351,7 @@ inp_chk_for_multi_in_vcvs(struct line *c, int *line_number) *c->li_line = '*'; c = c->li_next = xx_new_line(c->li_next, m_instance, (*line_number)++, 0); - model_card = xx_new_line(c->li_next, m_model, (*line_number)++, 0); - c->li_next = model_card; - // skip these two new cards - c = model_card; + c = c->li_next = xx_new_line(c->li_next, m_model, (*line_number)++, 0); } } }