mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-30 04:30:43 +00:00
don't seg if strct is null
This commit is contained in:
parent
2e8c18f8b6
commit
d8c66aef76
1 changed files with 1 additions and 1 deletions
|
@ -96,7 +96,7 @@ new_struct_field (type_t *strct, type_t *type, const char *name,
|
|||
struct_field_t *
|
||||
struct_find_field (type_t *strct, const char *name)
|
||||
{
|
||||
if (!structs)
|
||||
if (!structs || !strct)
|
||||
return 0;
|
||||
return Hash_Find (strct->struct_fields, name);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue