evas textblock - fix deref before null check shown by coverity

fixes CID 1356927
This commit is contained in:
Carsten Haitzler 2016-07-09 12:07:10 +09:00
parent 9c80c2b070
commit 3990032330
1 changed files with 1 additions and 2 deletions

View File

@ -9329,12 +9329,11 @@ _evas_textblock_cursor_pos_set(Efl_Canvas_Text_Cursor_Data *cur, int _pos)
{
Evas_Object_Textblock_Node_Text *n;
size_t pos;
if (!cur) return;
Evas_Object_Protected_Data *obj = eo_data_scope_get(cur->obj, EFL_CANVAS_OBJECT_CLASS);
evas_object_async_block(obj);
Efl_Canvas_Text_Data *o = eo_data_scope_get(cur->obj, MY_CLASS);
if (!cur) return;
if (_pos < 0)
{