mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 23:32:09 +00:00
Protect the name passed into emit_struct().
The name passed into emit_struct is sometimes created via va(), but the struct creation code also uses va. This makes a mess of names.
This commit is contained in:
parent
3e1b034aaf
commit
59a683d39e
1 changed files with 1 additions and 0 deletions
|
@ -223,6 +223,7 @@ emit_structure (const char *name, int su, struct_def_t *defs, type_t *type,
|
|||
def_t *struct_def;
|
||||
def_t field_def;
|
||||
|
||||
name = save_string (name);
|
||||
if (!type) {
|
||||
memset (&new, 0, sizeof (new));
|
||||
type = &new;
|
||||
|
|
Loading…
Reference in a new issue