From: Ingo Schwarze Date: Wed, 26 Jul 2017 10:33:34 +0000 (+0000) Subject: Fix a typo that caused a non-constant string X-Git-Tag: VERSION_1_14_2~5 X-Git-Url: https://git.cameronkatri.com/mandoc.git/commitdiff_plain/e97bd37b6c4e291467ca0d2f627deb1fa66fb79e Fix a typo that caused a non-constant string to be passed as a format string; no functional change; reported by Michael . --- diff --git a/man_validate.c b/man_validate.c index 12ba6e22..b3356ccb 100644 --- a/man_validate.c +++ b/man_validate.c @@ -211,9 +211,8 @@ post_OP(CHKARGS) static void post_UR(CHKARGS) { - if (n->type == ROFFT_HEAD && n->child == NULL) - mandoc_vmsg(MANDOCERR_UR_NOHEAD, man->parse, + mandoc_msg(MANDOCERR_UR_NOHEAD, man->parse, n->line, n->pos, roff_name[n->tok]); check_part(man, n); }