summaryrefslogtreecommitdiffstats
path: root/usr.bin/mandoc/man_macro.c
diff options
context:
space:
mode:
authorschwarze <schwarze@openbsd.org>2011-12-04 00:44:18 +0000
committerschwarze <schwarze@openbsd.org>2011-12-04 00:44:18 +0000
commit649d1604eb19f96ad8290edfef6128c080df365a (patch)
tree964b6e3f36632019ad134d1a1ba4270554f5b818 /usr.bin/mandoc/man_macro.c
parentmore nits (diff)
downloadwireguard-openbsd-649d1604eb19f96ad8290edfef6128c080df365a.tar.xz
wireguard-openbsd-649d1604eb19f96ad8290edfef6128c080df365a.zip
When a man document contains nothing at all except one or more invalid
macros, do not die on an assertion, but show correct error messages. Assertions of meta data validity suggested by joerg@. ok joerg@
Diffstat (limited to 'usr.bin/mandoc/man_macro.c')
-rw-r--r--usr.bin/mandoc/man_macro.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/usr.bin/mandoc/man_macro.c b/usr.bin/mandoc/man_macro.c
index 05c59a90a1b..f4a28bcc310 100644
--- a/usr.bin/mandoc/man_macro.c
+++ b/usr.bin/mandoc/man_macro.c
@@ -1,4 +1,4 @@
-/* $Id: man_macro.c,v 1.32 2011/11/05 16:02:18 schwarze Exp $ */
+/* $Id: man_macro.c,v 1.33 2011/12/04 00:44:18 schwarze Exp $ */
/*
* Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
*
@@ -116,7 +116,6 @@ man_unscope(struct man *m, const struct man_node *to,
assert(to);
- assert(MAN_ROOT != m->last->type);
m->next = MAN_NEXT_SIBLING;
/* LINTED */