mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 23:32:09 +00:00
[qfcc] Fix segfault when assigning {}
This commit is contained in:
parent
9c5fac2226
commit
9c06b22719
1 changed files with 1 additions and 1 deletions
|
@ -322,7 +322,7 @@ assign_expr (expr_t *dst, expr_t *src)
|
|||
return expr;
|
||||
}
|
||||
} else {
|
||||
if (!is_memset (src) && is_scalar (dst_type)) {
|
||||
if (!src && is_scalar (dst_type)) {
|
||||
return error (dst, "empty scalar initializer");
|
||||
}
|
||||
src = new_nil_expr ();
|
||||
|
|
Loading…
Reference in a new issue