mirror of
https://github.com/apache/nuttx.git
synced 2026-06-01 07:45:16 +08:00
symtab_findbyvalue: just retun NULL for NULL symtab
This commit is contained in:
committed by
Petro Karashchenko
parent
0edb290951
commit
dad4a7f8f7
@@ -62,7 +62,11 @@ symtab_findbyvalue(FAR const struct symtab_s *symtab,
|
|||||||
int low = 0;
|
int low = 0;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
DEBUGASSERT(symtab != NULL);
|
if (symtab == NULL)
|
||||||
|
{
|
||||||
|
DEBUGASSERT(nsyms == 0);
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
#ifdef CONFIG_SYMTAB_ORDEREDBYVALUE
|
#ifdef CONFIG_SYMTAB_ORDEREDBYVALUE
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user