summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pkg_install
diff options
context:
space:
mode:
authorsobomax <sobomax@FreeBSD.org>2002-08-12 16:15:25 +0000
committersobomax <sobomax@FreeBSD.org>2002-08-12 16:15:25 +0000
commitcaa152031758d04e19a87ea5055271e0d46ce680 (patch)
treefd2676c4b8c94191b18efd693f9a93c37449f2e9 /usr.sbin/pkg_install
parent4ae01618d14551be67e1488c4bc266369d6dc77a (diff)
downloadFreeBSD-src-caa152031758d04e19a87ea5055271e0d46ce680.zip
FreeBSD-src-caa152031758d04e19a87ea5055271e0d46ce680.tar.gz
Ensure that origin field in the packing list structure is initialised. This
fixes problem when there are origin-less packages installed on a system Reported by: Mark Knight <markk@knigma.org> MFC after: 3 days
Diffstat (limited to 'usr.sbin/pkg_install')
-rw-r--r--usr.sbin/pkg_install/lib/plist.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/usr.sbin/pkg_install/lib/plist.c b/usr.sbin/pkg_install/lib/plist.c
index 603588e..455bb9c 100644
--- a/usr.sbin/pkg_install/lib/plist.c
+++ b/usr.sbin/pkg_install/lib/plist.c
@@ -260,6 +260,7 @@ read_plist(Package *pkg, FILE *fp)
pkg->fmtver_maj = 1;
pkg->fmtver_mnr = 0;
+ pkg->origin = NULL;
while (fgets(pline, FILENAME_MAX, fp)) {
int len = strlen(pline);
OpenPOWER on IntegriCloud