From 353b2f1dc066ac2d6ed406b726fb8ac18cabab5f Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Tue, 19 Aug 2014 17:31:55 +0000 Subject: Do not dereference a NULL pointer if a .Bl macro has no -type, -width, -offset or -compact arguments whatsoever; this got broken in rev. 1.238. --- mdoc_validate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mdoc_validate.c b/mdoc_validate.c index ae6acec1..f97f1dfb 100644 --- a/mdoc_validate.c +++ b/mdoc_validate.c @@ -529,7 +529,7 @@ pre_bl(PRE_ARGS) * ones. If we find no list type, we default to LIST_item. */ - wa = n->args->argv; + wa = (n->args == NULL) ? NULL : n->args->argv; mdoclt = MDOC_ARG_MAX; for (i = 0; n->args && i < (int)n->args->argc; i++) { argv = n->args->argv + i; -- cgit