diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-01-16 12:23:25 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-01-16 12:23:25 +0000 |
commit | 323df3a1959338fcada2958ee7d4506c60067f1b (patch) | |
tree | 4ce8570e68a0fae3b66a86d4980ee151d6192010 /validate.c | |
parent | a1a867fb1c1e2901c238afa76abb2f2168efca20 (diff) | |
download | mandoc-323df3a1959338fcada2958ee7d4506c60067f1b.tar.gz mandoc-323df3a1959338fcada2958ee7d4506c60067f1b.tar.zst mandoc-323df3a1959338fcada2958ee7d4506c60067f1b.zip |
Clean-ups & documentation.
Diffstat (limited to 'validate.c')
-rw-r--r-- | validate.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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 <kristaps@kth.se> * @@ -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; |