diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-04-05 13:12:34 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-04-05 13:12:34 +0000 |
commit | 6da2707d20f78867a93eba7ec66bcf37223a783a (patch) | |
tree | 6e2ccd283ddc59ded1a91a6ea06bf23bc85b58f0 | |
parent | 82f56bb6e9c84aa9217548198fc5854f084e4f04 (diff) | |
download | mandoc-6da2707d20f78867a93eba7ec66bcf37223a783a.tar.gz |
Fix type- and NULL-check to be correct node (last, not child). Prevents
segfault in NetBSD.
-rw-r--r-- | mandoc-db.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; /* |