mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
libsysprof: return null for empty description
Just to decrease chances this causes tooltips to display.
This commit is contained in:
@ -221,6 +221,9 @@ sysprof_document_counter_get_description (SysprofDocumentCounter *self)
|
||||
{
|
||||
g_return_val_if_fail (SYSPROF_IS_DOCUMENT_COUNTER (self), NULL);
|
||||
|
||||
if (self->description == NULL || self->description[0] == 0)
|
||||
return NULL;
|
||||
|
||||
return self->description;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user