diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2010-07-03 17:17:15 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2010-07-03 17:17:15 +0000 |
commit | 21ba8ecaf2eb2e4488cba5975c67d6c6e63fa069 (patch) | |
tree | 04bb70d70826cd807e6b8cedcd8417e39de956fc /mdoc_term.c | |
parent | 29ed81cf1831caa0ccaa535d5e55104ef232d423 (diff) | |
download | mandoc-21ba8ecaf2eb2e4488cba5975c67d6c6e63fa069.tar.gz |
Allow empty `Fo' to get by without an assertion.
Diffstat (limited to 'mdoc_term.c')
-rw-r--r-- | mdoc_term.c | 4 |
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); |