From 0e8185a78ba3a32f8dc0bbf129a499a5886091c1 Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Mon, 6 Dec 2010 13:50:41 +0000 Subject: Allow HP/IP/etc. to have no arguments, as they're optional. From a field- tested patch by schwarze@. --- man_validate.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'man_validate.c') diff --git a/man_validate.c b/man_validate.c index a3a8669a..f345e595 100644 --- a/man_validate.c +++ b/man_validate.c @@ -321,9 +321,7 @@ check_par(CHKARGS) break; return(man_nmsg(m, n, MANDOCERR_ARGSLOST)); default: - if (n->nchild) - break; - return(man_nmsg(m, n, MANDOCERR_NOARGS)); + break; } return(1); -- cgit