Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/makemandb Explicitly deal with end of lists. PR 49708.
details: https://anonhg.NetBSD.org/src/rev/db906b708650
branches: trunk
changeset: 336455:db906b708650
user: joerg <joerg%NetBSD.org@localhost>
date: Mon Mar 02 13:51:24 2015 +0000
description:
Explicitly deal with end of lists. PR 49708.
diffstat:
usr.sbin/makemandb/makemandb.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (36 lines):
diff -r d6bda0cdf423 -r db906b708650 usr.sbin/makemandb/makemandb.c
--- a/usr.sbin/makemandb/makemandb.c Mon Mar 02 13:48:00 2015 +0000
+++ b/usr.sbin/makemandb/makemandb.c Mon Mar 02 13:51:24 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: makemandb.c,v 1.25 2014/10/18 08:33:31 snj Exp $ */
+/* $NetBSD: makemandb.c,v 1.26 2015/03/02 13:51:24 joerg Exp $ */
/*
* Copyright (c) 2011 Abhinav Upadhyay <er.abhinav.upadhyay%gmail.com@localhost>
* Copyright (c) 2011 Kristaps Dzonsons <kristaps%bsd.lv@localhost>
@@ -17,7 +17,7 @@
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: makemandb.c,v 1.25 2014/10/18 08:33:31 snj Exp $");
+__RCSID("$NetBSD: makemandb.c,v 1.26 2015/03/02 13:51:24 joerg Exp $");
#include <sys/stat.h>
#include <sys/types.h>
@@ -981,7 +981,7 @@
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 @@
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;
Home |
Main Index |
Thread Index |
Old Index