mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-11 07:30:54 +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);
|
g_return_val_if_fail (SYSPROF_IS_DOCUMENT_COUNTER (self), NULL);
|
||||||
|
|
||||||
|
if (self->description == NULL || self->description[0] == 0)
|
||||||
|
return NULL;
|
||||||
|
|
||||||
return self->description;
|
return self->description;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user