summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@cvs.openbsd.org>2009-07-18 16:21:53 +0000
committerIngo Schwarze <schwarze@cvs.openbsd.org>2009-07-18 16:21:53 +0000
commit4f6bf413e07ca1455cfbed73184c255fb24e20c3 (patch)
treef06afa100fce3f6c7a0b9f8ae9014ba0257d172e
parent68d7b5726a386b4a6a1d7da8169ac3c6525fe289 (diff)
sync to 1.8.0: avoid duplicate warning about a malformed NAME section
when the next section following NAME is a custom section
-rw-r--r--usr.bin/mandoc/mdoc_validate.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/mandoc/mdoc_validate.c b/usr.bin/mandoc/mdoc_validate.c
index 2f8a930005a..16d3c35412b 100644
--- a/usr.bin/mandoc/mdoc_validate.c
+++ b/usr.bin/mandoc/mdoc_validate.c
@@ -1,4 +1,4 @@
-/* $Id: mdoc_validate.c,v 1.25 2009/07/18 15:34:27 schwarze Exp $ */
+/* $Id: mdoc_validate.c,v 1.26 2009/07/18 16:21:52 schwarze Exp $ */
/*
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -1148,7 +1148,7 @@ post_sh_body(POST_ARGS)
{
struct mdoc_node *n;
- if (SEC_NAME != mdoc->lastnamed)
+ if (SEC_NAME != mdoc->lastsec)
return(1);
/*