diff options
author | 2010-04-03 16:33:01 +0000 | |
---|---|---|
committer | 2010-04-03 16:33:01 +0000 | |
commit | ca68802ea0f761177e4180756f42c87311a971c0 (patch) | |
tree | 64c5510814a7b0632536c78f00150adf99b8f384 /usr.bin/mandoc/man_validate.c | |
parent | When two conflicting list types are specified for the same list, (diff) | |
download | wireguard-openbsd-ca68802ea0f761177e4180756f42c87311a971c0.tar.xz wireguard-openbsd-ca68802ea0f761177e4180756f42c87311a971c0.zip |
When we have no title in man(7), just use "unknown". No need to bail.
ok deraadt@
Diffstat (limited to 'usr.bin/mandoc/man_validate.c')
-rw-r--r-- | usr.bin/mandoc/man_validate.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/usr.bin/mandoc/man_validate.c b/usr.bin/mandoc/man_validate.c index a12fa9adea5..7347769d4f1 100644 --- a/usr.bin/mandoc/man_validate.c +++ b/usr.bin/mandoc/man_validate.c @@ -1,4 +1,4 @@ -/* $Id: man_validate.c,v 1.16 2010/04/02 11:37:07 schwarze Exp $ */ +/* $Id: man_validate.c,v 1.17 2010/04/03 16:33:01 schwarze Exp $ */ /* * Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se> * @@ -163,8 +163,11 @@ check_root(CHKARGS) if (NULL == m->first->child) return(man_nerr(m, n, WNODATA)); - if (NULL == m->meta.title) - return(man_nerr(m, n, WNOTITLE)); + if (NULL == m->meta.title) { + if ( ! man_nwarn(m, n, WNOTITLE)) + return(0); + m->meta.title = mandoc_strdup("unknown"); + } return(1); } |