From 1140a0ae99b0d793cd7e9f01b982aa49bb988567 Mon Sep 17 00:00:00 2001 From: Nick Gasson Date: Sat, 21 Nov 2009 14:12:38 +0000 Subject: [PATCH] Fix blank line parsing in config file --- src/config_file.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/config_file.c b/src/config_file.c index ed1429d..9e3fde5 100644 --- a/src/config_file.c +++ b/src/config_file.c @@ -163,7 +163,9 @@ void parse_config_file(void) token_t tok; int lineno = 1; for (;;) { - tok = next_token(frc, opt_buf, &lineno, &escape); + while ((tok = next_token(frc, opt_buf, &lineno, &escape)) + == tNEWLINE) + expect(tNEWLINE, tok, true, lineno, &escape); expect(tTOKEN, tok, true, lineno, &escape); tok = next_token(frc, dummy_buf, &lineno, &escape); -- 2.39.2