From 83205d6c3051af36bf628f4f8dff6d4520a1b8d1 Mon Sep 17 00:00:00 2001 From: h_vogt Date: Wed, 5 Jun 2013 22:51:06 +0200 Subject: [PATCH] inp.c: skip title line when searching for .if in dotifeval() --- src/frontend/inp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/frontend/inp.c b/src/frontend/inp.c index fd003b026..717b059bf 100644 --- a/src/frontend/inp.c +++ b/src/frontend/inp.c @@ -1219,7 +1219,8 @@ dotifeval(struct line *deck) char *dottoken; char *s, *t; - for (dd = deck; dd; dd = dd->li_next) { + /* skip the first line (title line) */ + for (dd = deck->li_next; dd; dd = dd->li_next) { s = t = dd->li_line;