Module Name: src Committed By: snj Date: Sat Mar 7 06:21:08 UTC 2015
Modified Files: src/usr.sbin/makemandb [netbsd-7]: makemandb.c Log Message: Pull up following revision(s) (requested by he in ticket #563): crypto/external/bsd/openssh/Makefile.inc: revision 1.8 Sync the HAVE's with reality To generate a diff of this commit: cvs rdiff -u -r1.24 -r1.24.2.1 src/usr.sbin/makemandb/makemandb.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/usr.sbin/makemandb/makemandb.c diff -u src/usr.sbin/makemandb/makemandb.c:1.24 src/usr.sbin/makemandb/makemandb.c:1.24.2.1 --- src/usr.sbin/makemandb/makemandb.c:1.24 Tue Jun 3 14:42:41 2014 +++ src/usr.sbin/makemandb/makemandb.c Sat Mar 7 06:21:08 2015 @@ -1,4 +1,4 @@ -/* $NetBSD: makemandb.c,v 1.24 2014/06/03 14:42:41 wiz Exp $ */ +/* $NetBSD: makemandb.c,v 1.24.2.1 2015/03/07 06:21:08 snj Exp $ */ /* * Copyright (c) 2011 Abhinav Upadhyay <er.abhinav.upadh...@gmail.com> * Copyright (c) 2011 Kristaps Dzonsons <krist...@bsd.lv> @@ -17,7 +17,7 @@ */ #include <sys/cdefs.h> -__RCSID("$NetBSD: makemandb.c,v 1.24 2014/06/03 14:42:41 wiz Exp $"); +__RCSID("$NetBSD: makemandb.c,v 1.24.2.1 2015/03/07 06:21:08 snj Exp $"); #include <sys/stat.h> #include <sys/types.h> @@ -981,7 +981,7 @@ pmdoc_Nd(const struct mdoc_node *n, mand char *temp; char *nd_text; - if (n == NULL) + if (n == NULL || n->tok == MDOC_MAX) return; if (n->type == MDOC_TEXT) { @@ -1104,7 +1104,7 @@ pmdoc_Pp(const struct mdoc_node *n, mand static void pmdoc_Sh(const struct mdoc_node *n, mandb_rec *rec) { - if (n == NULL) + if (n == NULL || n->tok == MDOC_MAX) return; int xr_found = 0;