mirror of
https://github.com/apache/nuttx.git
synced 2026-05-16 22:21:04 +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;
|
||||
#endif
|
||||
|
||||
DEBUGASSERT(symtab != NULL);
|
||||
if (symtab == NULL)
|
||||
{
|
||||
DEBUGASSERT(nsyms == 0);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_SYMTAB_ORDEREDBYVALUE
|
||||
|
||||
|
||||
Reference in New Issue
Block a user