inpcom.c, expand_section_ref(), #6/7, drop 'rest'
This commit is contained in:
parent
0f8fb4cf51
commit
dd155dd83e
|
|
@ -2418,10 +2418,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] = '<';
|
||||
|
|
@ -2435,7 +2434,6 @@ expand_section_ref(struct line *c, char *dir_name)
|
|||
}
|
||||
c->li_line[0] = '*';
|
||||
c->li_line[1] = '>';
|
||||
c->li_next = rest;
|
||||
|
||||
c = c;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue