mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-12 08:00:53 +00:00
libsysprof: handle failure case better
This commit is contained in:
@ -132,9 +132,13 @@ sysprof_kernel_symbol_load (void)
|
|||||||
g_array_index (ar, SysprofKernelSymbol, ar->len - 1).address);
|
g_array_index (ar, SysprofKernelSymbol, ar->len - 1).address);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
kernel_symbols = g_steal_pointer (&ar);
|
if (ar->len > 0)
|
||||||
|
{
|
||||||
|
kernel_symbols = g_steal_pointer (&ar);
|
||||||
|
return TRUE;
|
||||||
|
}
|
||||||
|
|
||||||
return TRUE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
static const SysprofKernelSymbol *
|
static const SysprofKernelSymbol *
|
||||||
|
|||||||
Reference in New Issue
Block a user