mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-02-17 01:11:45 +00:00
[util] Fail gracefully when no symtab is present
This commit is contained in:
parent
01b9c9bf78
commit
a35eec3877
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue