summaryrefslogtreecommitdiffstats
path: root/mdoc_term.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2010-07-03 17:17:15 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2010-07-03 17:17:15 +0000
commit21ba8ecaf2eb2e4488cba5975c67d6c6e63fa069 (patch)
tree04bb70d70826cd807e6b8cedcd8417e39de956fc /mdoc_term.c
parent29ed81cf1831caa0ccaa535d5e55104ef232d423 (diff)
downloadmandoc-21ba8ecaf2eb2e4488cba5975c67d6c6e63fa069.tar.gz
Allow empty `Fo' to get by without an assertion.
Diffstat (limited to 'mdoc_term.c')
-rw-r--r--mdoc_term.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/mdoc_term.c b/mdoc_term.c
index eae580af..557095e9 100644
--- a/mdoc_term.c
+++ b/mdoc_term.c
@@ -2012,9 +2012,11 @@ termp_fo_pre(DECL_ARGS)
return(1);
}
+ if (NULL == n->child)
+ return(0);
+
/* XXX: we drop non-initial arguments as per groff. */
- assert(n->child);
assert(n->child->string);
term_fontpush(p, TERMFONT_BOLD);
term_word(p, n->child->string);