mirror of
https://github.com/opnsense/src.git
synced 2026-06-11 01:30:30 -04:00
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
1 changed files with 1 additions and 0 deletions
|
|
@ -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…
Reference in a new issue