summaryrefslogtreecommitdiffstats
path: root/mdoc_html.c
diff options
context:
space:
mode:
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) {