Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-6]: src/usr.sbin/makemandb Pull up following revision(s) (request...



details:   https://anonhg.NetBSD.org/src/rev/3833a44c72e2
branches:  netbsd-6
changeset: 775637:3833a44c72e2
user:      riz <riz%NetBSD.org@localhost>
date:      Fri Feb 08 19:45:43 2013 +0000

description:
Pull up following revision(s) (requested by christos in ticket #786):
        usr.sbin/makemandb/makemandb.c: revision 1.16
If you cannot parse .SH NAME, like in the case of the ksh93 man page
where the .SH is followed by a conditional:
.SH NAME
.if \nZ=0 \{text text text
.\}
at least don't core-dump.

diffstat:

 usr.sbin/makemandb/makemandb.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (27 lines):

diff -r f46f01c60e12 -r 3833a44c72e2 usr.sbin/makemandb/makemandb.c
--- a/usr.sbin/makemandb/makemandb.c    Fri Feb 08 19:43:01 2013 +0000
+++ b/usr.sbin/makemandb/makemandb.c    Fri Feb 08 19:45:43 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: makemandb.c,v 1.2.2.6 2012/11/20 23:11:47 riz Exp $    */
+/*     $NetBSD: makemandb.c,v 1.2.2.7 2013/02/08 19:45:43 riz 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.2.2.6 2012/11/20 23:11:47 riz Exp $");
+__RCSID("$NetBSD: makemandb.c,v 1.2.2.7 2013/02/08 19:45:43 riz Exp $");
 
 #include <sys/stat.h>
 #include <sys/types.h>
@@ -1273,6 +1273,8 @@
                pman_parse_name(n, rec);
 
                name_desc = rec->name_desc;
+               if (name_desc == NULL)
+                       return;
 
                /* Remove any leading spaces. */
                while (name_desc[0] == ' ')



Home | Main Index | Thread Index | Old Index