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
This commit is contained in:
Maxim Sobolev 2002-08-12 16:15:25 +00:00
parent e0852ce2de
commit f46eb8f0b8
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=101740

View File

@ -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);