mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 23:32:09 +00:00
initialize the new field properly
This commit is contained in:
parent
0361cb261f
commit
24f4bcfebf
1 changed files with 1 additions and 1 deletions
|
@ -86,7 +86,7 @@ new_struct_field (struct_t *strct, type_t *type, const char *name,
|
||||||
|
|
||||||
if (!strct)
|
if (!strct)
|
||||||
return 0;
|
return 0;
|
||||||
field = malloc (sizeof (struct_field_t));
|
field = calloc (sizeof (struct_field_t), 1);
|
||||||
field->visibility = visibility;
|
field->visibility = visibility;
|
||||||
if (name)
|
if (name)
|
||||||
field->name = save_string (name);
|
field->name = save_string (name);
|
||||||
|
|
Loading…
Reference in a new issue