]> git.cameronkatri.com Git - mandoc.git/commitdiff
Fix a typo that caused a non-constant string
authorIngo Schwarze <schwarze@openbsd.org>
Wed, 26 Jul 2017 10:33:34 +0000 (10:33 +0000)
committerIngo Schwarze <schwarze@openbsd.org>
Wed, 26 Jul 2017 10:33:34 +0000 (10:33 +0000)
to be passed as a format string; no functional change;
reported by Michael <Stapelberg at debian>.

man_validate.c

index 12ba6e22e97b209b559826fc3e4e59e6368849c7..b3356ccb3d3f29decc53cb8ed1fac8edd8c578bd 100644 (file)
@@ -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);
 }