mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-23 04:42:32 +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)
|
||||
return 0;
|
||||
field = malloc (sizeof (struct_field_t));
|
||||
field = calloc (sizeof (struct_field_t), 1);
|
||||
field->visibility = visibility;
|
||||
if (name)
|
||||
field->name = save_string (name);
|
||||
|
|
Loading…
Reference in a new issue