From 95a28252f2cb53cc1b4c37f883edb6dcf2994017 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(), rewrite appending to the tail --- 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 644366921..919b7c376 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 = last_param_card; } /* now sort parameters in order of dependencies */ inp_sort_params(first_param_card, head, NULL, NULL);