From 6da2707d20f78867a93eba7ec66bcf37223a783a Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Tue, 5 Apr 2011 13:12:34 +0000 Subject: Fix type- and NULL-check to be correct node (last, not child). Prevents segfault in NetBSD. --- mandoc-db.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mandoc-db.c b/mandoc-db.c index 944ae35c..878791d4 100644 --- a/mandoc-db.c +++ b/mandoc-db.c @@ -546,7 +546,7 @@ pmdoc_Vt(MDOC_ARGS) return; if (MDOC_Vt == n->tok && MDOC_BODY != n->type) return; - if (NULL == n->child || MDOC_TEXT != n->child->type) + if (NULL == n->last || MDOC_TEXT != n->last->type) return; /* -- cgit