mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
libsysprof: be NULL safe
This commit is contained in:
@ -174,6 +174,9 @@ sysprof_kernel_symbol_lookup (SysprofKernelSymbol *symbols,
|
||||
guint first,
|
||||
guint last)
|
||||
{
|
||||
if (symbols == NULL)
|
||||
return NULL;
|
||||
|
||||
if (address >= symbols [last].address)
|
||||
{
|
||||
return &symbols [last];
|
||||
|
||||
Reference in New Issue
Block a user