summaryrefslogtreecommitdiffstats
path: root/mdoc_html.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2010-04-03 14:25:12 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2010-04-03 14:25:12 +0000
commita3b3d26c8a7b8cb5a9b2de6c723de23998d2c9ba (patch)
tree48ac3fade0590d41f3ac658b69ec9eae566a1f63 /mdoc_html.c
parent206c5d5a8b5bd606ee0b17d3e0bd27bc5186cd93 (diff)
downloadmandoc-a3b3d26c8a7b8cb5a9b2de6c723de23998d2c9ba.tar.gz
Merged patch by Ingo Schwarze allowing `Xr' to pass through with no arguments (emits warning of course).
Diffstat (limited to 'mdoc_html.c')
-rw-r--r--mdoc_html.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/mdoc_html.c b/mdoc_html.c
index 8a3e26b8..1f18e3e2 100644
--- a/mdoc_html.c
+++ b/mdoc_html.c
@@ -756,6 +756,9 @@ mdoc_xr_pre(MDOC_ARGS)
struct htmlpair tag[2];
const struct mdoc_node *nn;
+ if (NULL == n->child)
+ return(0);
+
PAIR_CLASS_INIT(&tag[0], "link-man");
if (h->base_man) {