diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2010-04-03 14:25:12 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2010-04-03 14:25:12 +0000 |
commit | a3b3d26c8a7b8cb5a9b2de6c723de23998d2c9ba (patch) | |
tree | 48ac3fade0590d41f3ac658b69ec9eae566a1f63 /mdoc_term.c | |
parent | 206c5d5a8b5bd606ee0b17d3e0bd27bc5186cd93 (diff) | |
download | mandoc-a3b3d26c8a7b8cb5a9b2de6c723de23998d2c9ba.tar.gz |
Merged patch by Ingo Schwarze allowing `Xr' to pass through with no arguments (emits warning of course).
Diffstat (limited to 'mdoc_term.c')
-rw-r--r-- | mdoc_term.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/mdoc_term.c b/mdoc_term.c index 81074b70..7e397362 100644 --- a/mdoc_term.c +++ b/mdoc_term.c @@ -1277,7 +1277,10 @@ termp_xr_pre(DECL_ARGS) { const struct mdoc_node *nn; - assert(n->child && MDOC_TEXT == n->child->type); + if (NULL == n->child) + return(0); + + assert(MDOC_TEXT == n->child->type); nn = n->child; term_word(p, nn->string); |