diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2017-07-26 10:33:34 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2017-07-26 10:33:34 +0000 |
commit | 66351285d76df24b08f66d3deb2d1e650178c8d6 (patch) | |
tree | f7e27d0bd9d5f05c5cb4371fba7f9809207ee506 /man_validate.c | |
parent | 31405eecbc0c194469c4546f49a8a6d0e7f84909 (diff) | |
download | mandoc-66351285d76df24b08f66d3deb2d1e650178c8d6.tar.gz |
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>.
Diffstat (limited to 'man_validate.c')
-rw-r--r-- | man_validate.c | 3 |
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); } |