summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mdoc_state.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/mdoc_state.c b/mdoc_state.c
index 849ea43e..cd5d6ca8 100644
--- a/mdoc_state.c
+++ b/mdoc_state.c
@@ -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;