From f46eb8f0b8a486222c09a758f2d944aa9a2bc97b Mon Sep 17 00:00:00 2001 From: Maxim Sobolev Date: Mon, 12 Aug 2002 16:15:25 +0000 Subject: [PATCH] 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 MFC after: 3 days --- usr.sbin/pkg_install/lib/plist.c | 1 + 1 file changed, 1 insertion(+) diff --git a/usr.sbin/pkg_install/lib/plist.c b/usr.sbin/pkg_install/lib/plist.c index 603588e14bf..455bb9cc8d3 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);