From 2aafc5060896aee2aa6e3e1c35df6d106e1dd067 Mon Sep 17 00:00:00 2001 From: rlar Date: Sat, 22 Apr 2017 12:44:50 +0200 Subject: [PATCH] inpcom.c, inp_fix_subckt(), #2/4, use insert_new_line() --- 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 73b541c05..83f54e917 100644 --- a/src/frontend/inpcom.c +++ b/src/frontend/inpcom.c @@ -2195,11 +2195,7 @@ inp_fix_subckt(struct names *subckt_w_params, char *s) beg = ptr2; - c = xx_new_line(NULL, copy_substring(ptr1, ptr2), 0, 0); - - if (last_param_card) - last_param_card->li_next = c; - last_param_card = c; + c = last_param_card = insert_new_line(last_param_card, copy_substring(ptr1, ptr2), 0, 0); if (!first_param_card) first_param_card = c;