forked from enlightenment/efl
evas_object_textblock: fix dereference before null check
Summary: Fix coverity CID 1270031 Dereference before null check @fix Reviewers: devilhorns, zmike, raster, tasn Reviewed By: tasn Subscribers: tasn, cedric Differential Revision: https://phab.enlightenment.org/D2522
This commit is contained in:
parent
c9d5479ff9
commit
344f17a03d
|
@ -7163,9 +7163,9 @@ evas_textblock_cursor_free(Evas_Textblock_Cursor *cur)
|
|||
EAPI Eina_Bool
|
||||
evas_textblock_cursor_is_format(const Evas_Textblock_Cursor *cur)
|
||||
{
|
||||
if ((!cur) || (!cur->node)) return EINA_FALSE;
|
||||
Evas_Object_Protected_Data *obj = eo_data_scope_get(cur->obj, EVAS_OBJECT_CLASS);
|
||||
evas_object_async_block(obj);
|
||||
if (!cur || !cur->node) return EINA_FALSE;
|
||||
return (_evas_textblock_cursor_node_format_at_pos_get(cur)) ?
|
||||
EINA_TRUE : EINA_FALSE;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue