Corrected error in property matching that can cause a segfault.

This commit is contained in:
Tim Edwards 2020-03-05 15:20:46 -05:00
parent 515fccc633
commit 983c654086
1 changed files with 2 additions and 1 deletions

View File

@ -4436,12 +4436,13 @@ int PropertyOptimize(struct objlist *ob, struct nlist *tp, int run, int series,
if (vl == NULL) {
if (kl->type != vlist[p][j]->type)
PromoteProperty(kl, vl2);
vl = &dfltvl;
}
else {
if (kl->type != vlist[p][i]->type)
PromoteProperty(kl, vl);
vl2 = &dfltvl;
}
vl = &dfltvl;
dfltvl.type = kl->type;
switch (kl->type) {
case PROP_STRING: