diff options
author | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2010-12-01 22:02:30 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2010-12-01 22:02:30 +0000 |
commit | f1a8aa51944afc91c0605f9d1bc82995909b5797 (patch) | |
tree | 506b1c2d51b0bcbbba742d2446c6d632c5730f10 /usr.bin/mandoc/mdoc_term.c | |
parent | 868a47e1fc0bc0f194fb2d7a84f64078b11734c5 (diff) |
Merge mdoc_action.c into mdoc_validate.c, because having two places to do
basically the same things just causes code duplication and confusion.
Work by kristaps@, including a few bugfixes he found during the merge,
and reapplying OpenBSD changes on top.
Diffstat (limited to 'usr.bin/mandoc/mdoc_term.c')
-rw-r--r-- | usr.bin/mandoc/mdoc_term.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/mandoc/mdoc_term.c b/usr.bin/mandoc/mdoc_term.c index 99c696edcf9..1b519bd6a16 100644 --- a/usr.bin/mandoc/mdoc_term.c +++ b/usr.bin/mandoc/mdoc_term.c @@ -1,4 +1,4 @@ -/* $Id: mdoc_term.c,v 1.113 2010/10/23 23:30:41 schwarze Exp $ */ +/* $Id: mdoc_term.c,v 1.114 2010/12/01 22:02:29 schwarze Exp $ */ /* * Copyright (c) 2008, 2009, 2010 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2010 Ingo Schwarze <schwarze@openbsd.org> @@ -2076,7 +2076,7 @@ termp_lk_pre(DECL_ARGS) nn = sv = n->child; - if (NULL == nn->next) + if (NULL == nn || NULL == nn->next) return(1); for (nn = nn->next; nn; nn = nn->next) |