mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-03-21 09:51:41 +00:00
Handle invalid initializers gracefully.
This commit is contained in:
parent
4c63a0bad6
commit
23b01be214
1 changed files with 3 additions and 0 deletions
|
@ -233,6 +233,9 @@ initialize_def (symbol_t *sym, type_t *type, expr_t *init, defspace_t *space,
|
|||
}
|
||||
if (!init)
|
||||
return;
|
||||
convert_name (init);
|
||||
if (init->type == ex_error)
|
||||
return;
|
||||
if (init->type == ex_nil)
|
||||
convert_nil (init, type);
|
||||
if (!type_assignable (type, get_type (init))) {
|
||||
|
|
Loading…
Reference in a new issue