libsysprof: be NULL safe

This commit is contained in:
Christian Hergert
2019-05-28 20:10:56 -07:00
parent 1583ec3f79
commit 7f92889076

View File

@ -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];