From bd4e12d2382e4c843be9ea7a0d615c72795428f8 Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Wed, 10 Jul 2019 14:08:43 -0400 Subject: [PATCH] Fix regression with manual name check --- src/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.c b/src/main.c index 6b948ec..f8dfe07 100644 --- a/src/main.c +++ b/src/main.c @@ -138,7 +138,7 @@ static void parse_preamble(struct parser *p) { } fprintf(p->output, "\n"); break; - } else { + } else if (section == -1) { parser_fatal(p, "Name characters must be A-Z, a-z, 0-9, `-`, `_`, or `.`"); } }