From dd42fa345925d50f85acaae84e28ac464944439e Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Mon, 24 May 2010 12:33:07 +0000 Subject: Fix segfault in mixing old enum types for -Thtml -mdoc; from kristaps@. --- usr.bin/mandoc/mdoc_html.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'usr.bin/mandoc/mdoc_html.c') diff --git a/usr.bin/mandoc/mdoc_html.c b/usr.bin/mandoc/mdoc_html.c index 22d582d0c01..658dfbf2c96 100644 --- a/usr.bin/mandoc/mdoc_html.c +++ b/usr.bin/mandoc/mdoc_html.c @@ -1,4 +1,4 @@ -/* $Id: mdoc_html.c,v 1.18 2010/05/24 00:00:10 schwarze Exp $ */ +/* $Id: mdoc_html.c,v 1.19 2010/05/24 12:33:06 schwarze Exp $ */ /* * Copyright (c) 2008, 2009 Kristaps Dzonsons * @@ -1076,7 +1076,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)); @@ -1100,7 +1100,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; -- cgit v1.2.3