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