summaryrefslogtreecommitdiffstats
path: root/mdoc_validate.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-07-25 16:03:03 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-07-25 16:03:03 +0000
commite820a984784a040afe30fb4601e418695d647928 (patch)
treeae8e8d89674be7f79466879e97a66cba021ca5aa /mdoc_validate.c
parent0d8aacabe1e3f7fd5a9be49188ca96e229c4fb6a (diff)
downloadmandoc-e820a984784a040afe30fb4601e418695d647928.tar.gz
Patches and results of LLVM static analysis (thanks uqs@sporlein.net).
Diffstat (limited to 'mdoc_validate.c')
-rw-r--r--mdoc_validate.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/mdoc_validate.c b/mdoc_validate.c
index 384fe669..7e6dddf1 100644
--- a/mdoc_validate.c
+++ b/mdoc_validate.c
@@ -1219,6 +1219,7 @@ post_sh_body(POST_ARGS)
return(0);
}
+ assert(n);
if (MDOC_BLOCK == n->type && MDOC_Nd == n->tok)
return(1);
return(mdoc_nwarn(mdoc, mdoc->last, ENAMESECINC));