inpcom.c, expand_section_ref(), #1/7, cend != NULL === t != section_def

This commit is contained in:
rlar 2017-04-22 12:26:51 +02:00
parent a51c1aba2c
commit 7f2cf192b6
1 changed files with 1 additions and 1 deletions

View File

@ -2423,7 +2423,7 @@ expand_section_ref(struct line *c, char *dir_name)
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);
if (cend)
if (t != section_def)
cend->li_next = newl;
else {
c->li_next = newl;