From 7af4421a50462b921d591f9af9efe2c15737f74d Mon Sep 17 00:00:00 2001 From: rlar Date: Sat, 22 Apr 2017 12:33:56 +0200 Subject: [PATCH] inpcom.c, expand_section_ref(), drop 'rest' --- src/frontend/inpcom.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/frontend/inpcom.c b/src/frontend/inpcom.c index 9e9a3c06b..03ffb01a7 100644 --- a/src/frontend/inpcom.c +++ b/src/frontend/inpcom.c @@ -2419,10 +2419,9 @@ expand_section_ref(struct line *c, char *dir_name) /* insert the library section definition into `c' */ { - struct line *rest = c->li_next; struct line *t = section_def; for (; t; t=t->li_next) { - c = c->li_next = xx_new_line(NULL, copy(t->li_line), t->li_linenum, t->li_linenum_orig); + c = c->li_next = xx_new_line(c->li_next, copy(t->li_line), t->li_linenum, t->li_linenum_orig); if (t == section_def) { c->li_line[0] = '*'; c->li_line[1] = '<'; @@ -2436,7 +2435,6 @@ expand_section_ref(struct line *c, char *dir_name) } c->li_line[0] = '*'; c->li_line[1] = '>'; - c->li_next = rest; c = c; }