inpcom.c, expand_section_ref(), #7/7, cleanup

This commit is contained in:
rlar 2017-04-22 12:34:56 +02:00
parent dd155dd83e
commit 38183b6167
1 changed files with 4 additions and 5 deletions

View File

@ -2425,17 +2425,16 @@ expand_section_ref(struct line *c, char *dir_name)
c->li_line[0] = '*';
c->li_line[1] = '<';
}
if(ciprefix(".endl", t->li_line))
if(ciprefix(".endl", t->li_line)) {
c->li_line[0] = '*';
c->li_line[1] = '>';
break;
}
}
if (!t) {
fprintf(stderr, "ERROR, .endl not found\n");
controlled_exit(EXIT_FAILURE);
}
c->li_line[0] = '*';
c->li_line[1] = '>';
c = c;
}
*line = '*'; /* comment out .lib line */