Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/catman No more core dump if _crunch section is miss...
details: https://anonhg.NetBSD.org/src/rev/140e2a80cfb1
branches: trunk
changeset: 472079:140e2a80cfb1
user: dante <dante%NetBSD.org@localhost>
date: Tue Apr 20 10:59:13 1999 +0000
description:
No more core dump if _crunch section is missing in man.conf
diffstat:
usr.sbin/catman/catman.c | 21 ++++++++++++---------
1 files changed, 12 insertions(+), 9 deletions(-)
diffs (35 lines):
diff -r 8dcc8ee71e89 -r 140e2a80cfb1 usr.sbin/catman/catman.c
--- a/usr.sbin/catman/catman.c Tue Apr 20 09:30:08 1999 +0000
+++ b/usr.sbin/catman/catman.c Tue Apr 20 10:59:13 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: catman.c,v 1.11 1999/04/20 05:02:36 mycroft Exp $ */
+/* $NetBSD: catman.c,v 1.12 1999/04/20 10:59:13 dante Exp $ */
/*
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -422,14 +422,17 @@
if(e_build == NULL) {
continue;
} else {
- crunchp = getlist("_crunch");
- for(e_crunch = crunchp->list.tqh_first; e_crunch;
- e_crunch = e_crunch->q.tqe_next) {
- splitentry(e_crunch->s, crunchsuff, crunchcmd);
- snprintf(match, sizeof(match), "*%s",
- crunchsuff);
- if(!fnmatch(match, manpage, 0))
- break;
+ e_crunch = NULL;
+ if(crunchp = getlist("_crunch")) {
+ for(e_crunch=crunchp->list.tqh_first; e_crunch;
+ e_crunch=e_crunch->q.tqe_next) {
+ splitentry(e_crunch->s, crunchsuff,
+ crunchcmd);
+ snprintf(match, sizeof(match), "*%s",
+ crunchsuff);
+ if(!fnmatch(match, manpage, 0))
+ break;
+ }
}
}
Home |
Main Index |
Thread Index |
Old Index