From a3b3d26c8a7b8cb5a9b2de6c723de23998d2c9ba Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Sat, 3 Apr 2010 14:25:12 +0000 Subject: Merged patch by Ingo Schwarze allowing `Xr' to pass through with no arguments (emits warning of course). --- mdoc_html.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'mdoc_html.c') 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) { -- cgit