* mdocml: Fix type- and NULL-check to be correct node (last, not child).
@ 2011-04-05 13:12 kristaps
0 siblings, 0 replies; only message in thread
From: kristaps @ 2011-04-05 13:12 UTC (permalink / raw)
To: source
Log Message:
-----------
Fix type- and NULL-check to be correct node (last, not child). Prevents
segfault in NetBSD.
Modified Files:
--------------
mdocml:
mandoc-db.c
Revision Data
-------------
Index: mandoc-db.c
===================================================================
RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/mandoc-db.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -Lmandoc-db.c -Lmandoc-db.c -u -p -r1.6 -r1.7
--- mandoc-db.c
+++ 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;
/*
--
To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2011-04-05 13:12 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-04-05 13:12 mdocml: Fix type- and NULL-check to be correct node (last, not child) kristaps
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).