diff options
author | 2001-06-06 20:03:08 +0000 | |
---|---|---|
committer | 2001-06-06 20:03:08 +0000 | |
commit | eab78ffabfc33f0017ff3a825004788437ee5ced (patch) | |
tree | de5e01b07e04ddc2a603205254b3d73da6003777 | |
parent | Use pool(9) for some of the structures, and splimp/splx to protect (diff) | |
download | wireguard-openbsd-eab78ffabfc33f0017ff3a825004788437ee5ced.tar.xz wireguard-openbsd-eab78ffabfc33f0017ff3a825004788437ee5ced.zip |
Do not dump core on empty comment
-rw-r--r-- | usr.sbin/pkg_install/create/pl.c | 7 |
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: |