diff --git a/src/frontend/inpcom.c b/src/frontend/inpcom.c index 2f68b55de..81462d7d9 100644 --- a/src/frontend/inpcom.c +++ b/src/frontend/inpcom.c @@ -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 */