-/* $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>
*
(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;
if (n->type != ROFFT_HEAD)
return;
- if ( ! (n->flags & MDOC_VALID)) {
+ if ( ! (n->flags & NODE_VALID)) {
secname = NULL;
deroff(&secname, n);