summaryrefslogtreecommitdiffstatshomepage
path: root/mdoc_action.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-09-24 15:08:41 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-09-24 15:08:41 +0000
commitadc3be19ec3ddf59cd25426c2002ceffca319207 (patch)
tree1c093cc8afa840d75c775a44bceb4819b2395b43 /mdoc_action.c
parent47e381136c9a2594ff3f832564011758c1fe47fc (diff)
downloadmandoc-adc3be19ec3ddf59cd25426c2002ceffca319207.tar.gz
mandoc-adc3be19ec3ddf59cd25426c2002ceffca319207.tar.zst
mandoc-adc3be19ec3ddf59cd25426c2002ceffca319207.zip
Fixed segfault in `Rs' empty block.
Diffstat (limited to 'mdoc_action.c')
-rw-r--r--mdoc_action.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/mdoc_action.c b/mdoc_action.c
index 1beef02c..a5c8cb0a 100644
--- a/mdoc_action.c
+++ b/mdoc_action.c
@@ -1,4 +1,4 @@
-/* $Id: mdoc_action.c,v 1.39 2009/09/24 15:01:06 kristaps Exp $ */
+/* $Id: mdoc_action.c,v 1.40 2009/09/24 15:08:41 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -943,6 +943,7 @@ post_rs(POST_ARGS)
if (MDOC_BLOCK != n->type)
return(1);
+ assert(n->body->child);
for (next = NULL, nn = n->body->child->next; nn; nn = next) {
o = order_rs(nn->tok);