From 323df3a1959338fcada2958ee7d4506c60067f1b Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Fri, 16 Jan 2009 12:23:25 +0000 Subject: Clean-ups & documentation. --- validate.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'validate.c') diff --git a/validate.c b/validate.c index f105064a..6a22f634 100644 --- a/validate.c +++ b/validate.c @@ -1,4 +1,4 @@ -/* $Id: validate.c,v 1.31 2009/01/16 11:50:54 kristaps Exp $ */ +/* $Id: validate.c,v 1.32 2009/01/16 12:23:25 kristaps Exp $ */ /* * Copyright (c) 2008 Kristaps Dzonsons * @@ -306,7 +306,8 @@ pre_display(struct mdoc *mdoc, struct mdoc_node *node) if (MDOC_BLOCK != node->type) return(1); - for (n = mdoc->last; n; n = n->parent) + assert(mdoc->last); + for (n = mdoc->last->parent; n; n = n->parent) if (MDOC_BLOCK == n->type) if (MDOC_Bd == n->tok) break; -- cgit v1.2.3