symtab_findbyvalue: just retun NULL for NULL symtab
This commit is contained in:
parent
0edb290951
commit
dad4a7f8f7
|
@ -62,7 +62,11 @@ symtab_findbyvalue(FAR const struct symtab_s *symtab,
|
|||
int low = 0;
|
||||
#endif
|
||||
|
||||
DEBUGASSERT(symtab != NULL);
|
||||
if (symtab == NULL)
|
||||
{
|
||||
DEBUGASSERT(nsyms == 0);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_SYMTAB_ORDEREDBYVALUE
|
||||
|
||||
|
|
Loading…
Reference in New Issue