summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2001-06-06 20:03:09 +0000
committerMarc Espie <espie@cvs.openbsd.org>2001-06-06 20:03:09 +0000
commit05f0742feaeedc75321d8d7f42c4e9c14f51247e (patch)
tree6062529eb0fa3afa67d7e90452265c714011831b /usr.sbin
parent4759af14eac4578224e749383c8870717c2802d3 (diff)
Do not dump core on empty comment
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/pkg_install/create/pl.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.sbin/pkg_install/create/pl.c b/usr.sbin/pkg_install/create/pl.c
index c9c58005643..f40926efa3e 100644
--- a/usr.sbin/pkg_install/create/pl.c
+++ b/usr.sbin/pkg_install/create/pl.c
@@ -1,7 +1,7 @@
-/* $OpenBSD: pl.c,v 1.6 2000/04/26 15:25:29 espie Exp $ */
+/* $OpenBSD: pl.c,v 1.7 2001/06/06 20:03:08 espie Exp $ */
#ifndef lint
-static const char *rcsid = "$OpenBSD: pl.c,v 1.6 2000/04/26 15:25:29 espie Exp $";
+static const char *rcsid = "$OpenBSD: pl.c,v 1.7 2001/06/06 20:03:08 espie Exp $";
#endif
/*
@@ -54,7 +54,8 @@ check_list(char *home, package_t *pkg)
there = p->name;
break;
case PLIST_COMMENT:
- if (strcmp(p->name, "no checksum") == 0)
+ if (p->name != NULL &&
+ strcmp(p->name, "no checksum") == 0)
p = p->next;
break;
case PLIST_FILE: