diff options
-rw-r--r-- | mdoc_action.c | 3 | ||||
-rw-r--r-- | mdoc_validate.c | 4 |
2 files changed, 4 insertions, 3 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); diff --git a/mdoc_validate.c b/mdoc_validate.c index 80277fc2..974d6448 100644 --- a/mdoc_validate.c +++ b/mdoc_validate.c @@ -1,4 +1,4 @@ -/* $Id: mdoc_validate.c,v 1.43 2009/09/24 15:01:06 kristaps Exp $ */ +/* $Id: mdoc_validate.c,v 1.44 2009/09/24 15:08:41 kristaps Exp $ */ /* * Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se> * @@ -126,7 +126,7 @@ static v_post posts_nd[] = { berr_ge1, NULL }; static v_post posts_nm[] = { post_nm, NULL }; static v_post posts_notext[] = { eerr_eq0, NULL }; static v_post posts_pf[] = { eerr_eq1, NULL }; -static v_post posts_rs[] = { bwarn_ge1, herr_eq0, post_rs, NULL }; +static v_post posts_rs[] = { berr_ge1, herr_eq0, post_rs, NULL }; static v_post posts_sh[] = { herr_ge1, bwarn_ge1, post_sh, NULL }; static v_post posts_sp[] = { post_sp, NULL }; static v_post posts_ss[] = { herr_ge1, NULL }; |