From: Kristaps Dzonsons Date: Mon, 24 May 2010 12:17:09 +0000 (+0000) Subject: Fix segfault in mixing old enum types for -Thtml -mdoc. X-Git-Tag: VERSION_1_10_1~85 X-Git-Url: https://git.cameronkatri.com/mandoc.git/commitdiff_plain/4c257890260702a964cb6757fd50d6b411f557fa?hp=3b30e6df4eb5b735081129be0d03df872eb09dcb Fix segfault in mixing old enum types for -Thtml -mdoc. --- diff --git a/mdoc_html.c b/mdoc_html.c index 88e177c4..9d76e1d2 100644 --- a/mdoc_html.c +++ b/mdoc_html.c @@ -1,4 +1,4 @@ -/* $Id: mdoc_html.c,v 1.66 2010/05/17 23:57:06 kristaps Exp $ */ +/* $Id: mdoc_html.c,v 1.67 2010/05/24 12:17:09 kristaps Exp $ */ /* * Copyright (c) 2008, 2009 Kristaps Dzonsons * @@ -1080,7 +1080,7 @@ mdoc_bl_pre(MDOC_ARGS) return(0); if (MDOC_BLOCK != n->type) return(1); - if (MDOC_Enum != n->data.list) + if (LIST_enum != n->data.list) return(1); ord = malloc(sizeof(struct ord)); @@ -1104,7 +1104,7 @@ mdoc_bl_post(MDOC_ARGS) if (MDOC_BLOCK != n->type) return; - if (MDOC_Enum != n->data.list) + if (LIST_enum != n->data.list) return; ord = h->ords.head;