mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-02-17 01:11:45 +00:00
[qfcc] Fix segmentation fault for parameter errors
This commit is contained in:
parent
f6d650d473
commit
8a4de6fea6
1 changed files with 4 additions and 0 deletions
|
@ -1670,6 +1670,10 @@ build_function_call (expr_t *fexpr, const type_t *ftype, expr_t *params)
|
|||
for (i = arg_count - 1, e = params; i >= 0; i--, e = e->next) {
|
||||
type_t *t = get_type (e);
|
||||
|
||||
if (!t) {
|
||||
return e;
|
||||
}
|
||||
|
||||
if (!type_size (t))
|
||||
err = error (e, "type of formal parameter %d is incomplete",
|
||||
i + 1);
|
||||
|
|
Loading…
Reference in a new issue