aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2017-07-26 10:33:34 +0000
committerIngo Schwarze <schwarze@openbsd.org>2017-07-26 10:33:34 +0000
commite97bd37b6c4e291467ca0d2f627deb1fa66fb79e (patch)
tree04c95bd1f73dc8fcb3b31928547b31700170c1ab
parent833a3b2f0c74244e54e78e405968d466c8ea1bfc (diff)
downloadmandoc-e97bd37b6c4e291467ca0d2f627deb1fa66fb79e.tar.gz
mandoc-e97bd37b6c4e291467ca0d2f627deb1fa66fb79e.tar.zst
mandoc-e97bd37b6c4e291467ca0d2f627deb1fa66fb79e.zip
Fix a typo that caused a non-constant string
to be passed as a format string; no functional change; reported by Michael <Stapelberg at debian>.
-rw-r--r--man_validate.c3
1 files changed, 1 insertions, 2 deletions
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);
}