From 8d2f63107dfbf2096f92ce0ccacd63c3851eac79 Mon Sep 17 00:00:00 2001 From: rlar Date: Fri, 21 Apr 2017 20:57:06 +0200 Subject: [PATCH] inpcom.c, inp_chk_for_multi_in_vcvs(), drop 'next_card', deploy its value temporarily in the new line li_next slot --- src/frontend/inpcom.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/frontend/inpcom.c b/src/frontend/inpcom.c index 395c4ce7c..bdaf0e1a6 100644 --- a/src/frontend/inpcom.c +++ b/src/frontend/inpcom.c @@ -1351,9 +1351,8 @@ inp_chk_for_multi_in_vcvs(struct line *c, int *line_number) tfree(xy_values2[1]); *c->li_line = '*'; - next_card = c->li_next; - c = c->li_next = xx_new_line(NULL, m_instance, (*line_number)++, 0); - model_card = xx_new_line(next_card, m_model, (*line_number)++, 0); + 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;