From 8888be7eae3d4af4dc8575817d7467345614f7d4 Mon Sep 17 00:00:00 2001 From: rlar Date: Sat, 22 Apr 2017 12:30:51 +0200 Subject: [PATCH] inpcom.c, expand_section_ref(), drop 'newl' --- src/frontend/inpcom.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/frontend/inpcom.c b/src/frontend/inpcom.c index 9fbbea8b2..9e9a3c06b 100644 --- a/src/frontend/inpcom.c +++ b/src/frontend/inpcom.c @@ -2419,17 +2419,14 @@ expand_section_ref(struct line *c, char *dir_name) /* insert the library section definition into `c' */ { - struct line *newl; struct line *rest = c->li_next; struct line *t = section_def; for (; t; t=t->li_next) { - newl = xx_new_line(NULL, copy(t->li_line), t->li_linenum, t->li_linenum_orig); + c = c->li_next = xx_new_line(NULL, copy(t->li_line), t->li_linenum, t->li_linenum_orig); if (t == section_def) { - newl->li_line[0] = '*'; - newl->li_line[1] = '<'; + c->li_line[0] = '*'; + c->li_line[1] = '<'; } - c->li_next = newl; - c = newl; if(ciprefix(".endl", t->li_line)) break; }