[util] Zero plist symtabl object memory

This commit is contained in:
Bill Currie 2020-12-25 00:28:26 +09:00
parent c0c728b188
commit d824db68a5

View file

@ -1279,6 +1279,7 @@ PL_ParseSymtab (const plfield_t *field, const plitem_t *dict, void *data,
}
void *obj = element->alloc (element->stride);
memset (obj, 0, element->stride);
while ((current = (dictkey_t *) *l++)) {
const char *key = current->key;
plitem_t *item = current->value;
@ -1302,6 +1303,7 @@ PL_ParseSymtab (const plfield_t *field, const plitem_t *dict, void *data,
} else {
Hash_Add (tab, obj);
obj = element->alloc (element->stride);
memset (obj, 0, element->stride);
}
}
}