mirror of
https://github.com/apache/nuttx.git
synced 2026-08-06 13:08:59 +00:00
symtab_findbyvalue: just retun NULL for NULL symtab
This commit is contained in:
parent
0edb290951
commit
dad4a7f8f7
1 changed files with 5 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue