X-Git-Url: https://git.cameronkatri.com/mandoc.git/blobdiff_plain/56bf7e8b9228994f0a7e6486d7dc6ce9ff9fb51d..b897019f5696c540f454bcb428d44ad31ef65559:/mdoc_state.c diff --git a/mdoc_state.c b/mdoc_state.c index 7fc76dcb..cbd73763 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.3 2015/10/30 18:53:54 schwarze Exp $ */ /* * Copyright (c) 2014, 2015 Ingo Schwarze * @@ -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;