[util] Fail gracefully when no symtab is present

This commit is contained in:
Bill Currie 2021-01-10 15:02:24 +09:00
parent 01b9c9bf78
commit a35eec3877

View file

@ -258,6 +258,9 @@ parse_name (const char *name, exprctx_t *context)
{
exprtab_t *symtab = context->symtab;
if (!symtab) {
return 0;
}
__auto_type sym = (exprsym_t *) Hash_Find (symtab->tab, name);
return sym;
}