From 611d9138e480c02845497603ebf714305c67df68 Mon Sep 17 00:00:00 2001 From: schwarze Date: Thu, 11 Aug 2016 11:39:19 +0000 Subject: [PATCH] oops, fix stupid typo in previous --- usr.bin/mandoc/mdoc_validate.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/usr.bin/mandoc/mdoc_validate.c b/usr.bin/mandoc/mdoc_validate.c index 77524485658..9d69b6faf11 100644 --- a/usr.bin/mandoc/mdoc_validate.c +++ b/usr.bin/mandoc/mdoc_validate.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mdoc_validate.c,v 1.222 2016/08/11 10:46:27 schwarze Exp $ */ +/* $OpenBSD: mdoc_validate.c,v 1.223 2016/08/11 11:39:19 schwarze Exp $ */ /* * Copyright (c) 2008-2012 Kristaps Dzonsons * Copyright (c) 2010-2016 Ingo Schwarze @@ -878,7 +878,8 @@ post_display(POST_ARGS) switch (n->type) { case ROFFT_BODY: if (n->end != ENDBODY_NOT) { - if (n->tok == MDOC_Bd && n->parent->args == NULL) + if (n->tok == MDOC_Bd && + n->body->parent->args == NULL) roff_node_delete(mdoc, n); } else if (n->child == NULL) mandoc_msg(MANDOCERR_BLK_EMPTY, mdoc->parse, -- 2.20.1