From 199998afafd9415f8d330159e18f70422c4b6174 Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Tue, 29 May 2018 19:18:22 -0400 Subject: [PATCH] Permit man pages in section 0 This is used for POSIX headers --- src/main.c | 4 ++-- diff --git a/src/main.c b/src/main.c index 433cc8c13781682ff5315d4ae797958295df27b9..1e4bc078790e9b3d147c4143230157288639f5ca 100644 --- a/src/main.c +++ b/src/main.c @@ -22,8 +22,8 @@ if (!section->str) { break; } int sec = strtol(section->str, NULL, 10); - if (sec < 1 || sec > 9) { - parser_fatal(p, "Expected section between 1 and 9"); + if (sec < 0 || sec > 9) { + parser_fatal(p, "Expected section between 0 and 9"); break; } str_free(section); -- 2.48.1