diff options
author | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2017-07-26 10:33:03 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2017-07-26 10:33:03 +0000 |
commit | ce68ee88295c4de25f1e500b676cd1d4204a631b (patch) | |
tree | 662081cd389ea0b1e529e882b13807185afafba4 | |
parent | 8fe43b8909a3d3f47fc99fefaccec60a17953ff6 (diff) |
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-- | usr.bin/mandoc/man_validate.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.bin/mandoc/man_validate.c b/usr.bin/mandoc/man_validate.c index a3b1f3f5043..f73e1c837c2 100644 --- a/usr.bin/mandoc/man_validate.c +++ b/usr.bin/mandoc/man_validate.c @@ -1,4 +1,4 @@ -/* $OpenBSD: man_validate.c,v 1.103 2017/06/25 07:23:53 bentley Exp $ */ +/* $OpenBSD: man_validate.c,v 1.104 2017/07/26 10:33:02 schwarze Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2010, 2012-2017 Ingo Schwarze <schwarze@openbsd.org> @@ -209,9 +209,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); } |