From dda35ef2a58009e97e24de0be01aa5c5f66ada9a Mon Sep 17 00:00:00 2001 From: rlar Date: Sat, 22 Apr 2017 12:42:37 +0200 Subject: [PATCH] inpcom.c, inp_fix_subckt(), #1/4, rewrite 'append' --- src/frontend/inpcom.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/frontend/inpcom.c b/src/frontend/inpcom.c index 2d5f8b0c5..73b541c05 100644 --- a/src/frontend/inpcom.c +++ b/src/frontend/inpcom.c @@ -2199,10 +2199,10 @@ inp_fix_subckt(struct names *subckt_w_params, char *s) if (last_param_card) last_param_card->li_next = c; - else - first_param_card = c; - last_param_card = c; + + if (!first_param_card) + first_param_card = c; } /* now sort parameters in order of dependencies */ inp_sort_params(first_param_card, head, NULL, NULL);