X-Git-Url: https://git.cameronkatri.com/mandoc.git/blobdiff_plain/56bf7e8b9228994f0a7e6486d7dc6ce9ff9fb51d..f4e7c6fee7a66358f513b1fad8140537ebc896ff:/mdoc_state.c?ds=sidebyside diff --git a/mdoc_state.c b/mdoc_state.c index 7fc76dcb..4e376ef0 100644 --- a/mdoc_state.c +++ b/mdoc_state.c @@ -1,4 +1,4 @@ -/* $Id: mdoc_state.c,v 1.2 2015/10/21 23:51:11 schwarze Exp $ */ +/* $Id: mdoc_state.c,v 1.4 2017/01/10 13:47:00 schwarze Exp $ */ /* * Copyright (c) 2014, 2015 Ingo Schwarze <schwarze@openbsd.org> * @@ -195,6 +195,9 @@ state_bd(STATE_ARGS) (n->type != ROFFT_BODY || n->end != ENDBODY_NOT)) return; + if (n->parent->args == NULL) + return; + arg = n->parent->args->argv[0].arg; if (arg != MDOC_Literal && arg != MDOC_Unfilled) return; @@ -246,7 +249,7 @@ state_sh(STATE_ARGS) if (n->type != ROFFT_HEAD) return; - if ( ! (n->flags & MDOC_VALID)) { + if ( ! (n->flags & NODE_VALID)) { secname = NULL; deroff(&secname, n);