[qfcc] Fix segfault for mixed generic and static params

This commit is contained in:
Bill Currie 2024-09-01 21:25:42 +09:00
parent 0385345d63
commit 6f0c7eaba6

View file

@ -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;