evas text - handle null font case for font set

coverity was unhappy wiht inconsistent checks, so we'll be consistent
and thus handle a null font.

fixes CID 1403882
This commit is contained in:
Carsten Haitzler 2019-08-10 23:33:05 +01:00
parent b0ad81d927
commit 9e94115ab3
1 changed files with 1 additions and 1 deletions

View File

@ -459,7 +459,7 @@ _evas_text_efl_text_font_font_set(Eo *eo_obj, Evas_Text_Data *o, const char *fon
evas_object_async_block(obj);
if ((size == o->cur.size) &&
(o->cur.font && !strcmp(font, o->cur.font))) return;
(o->cur.font && font && !strcmp(font, o->cur.font))) return;
if (font)
{