mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-04-19 07:51:08 +00:00
[qfcc] Fix segfault for mixed generic and static params
This commit is contained in:
parent
0385345d63
commit
6f0c7eaba6
1 changed files with 1 additions and 1 deletions
|
@ -251,7 +251,7 @@ make_gentype (const expr_t *expr)
|
|||
static int
|
||||
find_gentype (const expr_t *expr, genfunc_t *genfunc)
|
||||
{
|
||||
if (expr->type != ex_symbol) {
|
||||
if (!expr || expr->type != ex_symbol) {
|
||||
return -1;
|
||||
}
|
||||
const char *name = expr->symbol->name;
|
||||
|
|
Loading…
Reference in a new issue