don't look up aux function info when we don't have it

This commit is contained in:
Bill Currie 2009-12-21 14:07:43 +00:00 committed by Jeff Teunissen
parent c9484af217
commit 4a7b8f8246

View file

@ -481,7 +481,7 @@ static pr_auxfunction_t *
get_aux_function (progs_t *pr)
{
dfunction_t *func;
if (!pr->pr_xfunction)
if (!pr->pr_xfunction || !pr->auxfunction_map)
return 0;
func = pr->pr_xfunction->descriptor;
return pr->auxfunction_map[func - pr->pr_functions];