]> git.cameronkatri.com Git - mandoc.git/commitdiff
Fix segfault in mixing old enum types for -Thtml -mdoc.
authorKristaps Dzonsons <kristaps@bsd.lv>
Mon, 24 May 2010 12:17:09 +0000 (12:17 +0000)
committerKristaps Dzonsons <kristaps@bsd.lv>
Mon, 24 May 2010 12:17:09 +0000 (12:17 +0000)
mdoc_html.c

index 88e177c400102d5ec46e84916813fb18a3550023..9d76e1d27691c7047709292dd1f1313d9ead8523 100644 (file)
@@ -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 <kristaps@kth.se>
  *
@@ -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;