From 7f2cf192b64adfb460199f504157ed80c1d5555c Mon Sep 17 00:00:00 2001 From: rlar Date: Sat, 22 Apr 2017 12:26:51 +0200 Subject: [PATCH] inpcom.c, expand_section_ref(), #1/7, cend != NULL === t != section_def --- src/frontend/inpcom.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontend/inpcom.c b/src/frontend/inpcom.c index 68727f96d..f414734f2 100644 --- a/src/frontend/inpcom.c +++ b/src/frontend/inpcom.c @@ -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;