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:
parent
e0852ce2de
commit
f46eb8f0b8
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user