From f849b38ca6324f49276e98a1e2cbf8972e4924bc Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Mon, 29 Nov 2010 13:02:47 +0000 Subject: Move `Mt', `Ar', and `Li' handling from mdoc_action.c into mdoc_validate.c. Clarify that `Mt' gets a default `~' (as per groff 1.20) and document it in mdoc.7. Made `Lk' be removed in mdoc_macro.c if it has no arguments. This fixes segfaults in mdoc_{term,html}.c that nobody's managed to raise yet. --- mdoc_html.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mdoc_html.c') diff --git a/mdoc_html.c b/mdoc_html.c index 2edcf9e7..9b8b4c10 100644 --- a/mdoc_html.c +++ b/mdoc_html.c @@ -1675,7 +1675,7 @@ mdoc_lk_pre(MDOC_ARGS) PAIR_HREF_INIT(&tag[1], nn->string); print_otag(h, TAG_A, 2, tag); - if (NULL == nn->next) + if (NULL == nn || NULL == nn->next) return(1); for (nn = nn->next; nn; nn = nn->next) -- cgit