mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
libsysprof-analyze: runtime protection against NULL names
Shouldn't happen, but at least don't crash.
This commit is contained in:
@ -76,6 +76,9 @@ _sysprof_symbol_equal (const SysprofSymbol *a,
|
||||
if (a->kind != b->kind)
|
||||
return FALSE;
|
||||
|
||||
if (a->name == NULL || b->name == NULL)
|
||||
return FALSE;
|
||||
|
||||
return strcmp (a->name, b->name) == 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user