From 1193a9f5cfb0cbb5a35ccca02a5968b39620f1db 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_term.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'mdoc_term.c') diff --git a/mdoc_term.c b/mdoc_term.c index 07cc5ea3..6197f10d 100644 --- a/mdoc_term.c +++ b/mdoc_term.c @@ -1,4 +1,4 @@ -/* $Id: mdoc_term.c,v 1.112 2010/03/29 19:28:04 kristaps Exp $ */ +/* $Id: mdoc_term.c,v 1.113 2010/04/03 14:25:12 kristaps Exp $ */ /* * Copyright (c) 2008, 2009 Kristaps Dzonsons * @@ -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); -- cgit v1.2.3-56-ge451