diff --git a/tools/qfcc/source/function.c b/tools/qfcc/source/function.c index 1e7a5295b..97e9dc00c 100644 --- a/tools/qfcc/source/function.c +++ b/tools/qfcc/source/function.c @@ -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;