mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +00:00
[util] Zero plist symtabl object memory
This commit is contained in:
parent
c0c728b188
commit
d824db68a5
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue