summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMinJeong Kim <minjjj.kim@samsung.com>2015-05-21 08:48:56 +0100
committerTom Hacohen <tom@stosb.com>2015-05-21 08:48:56 +0100
commit344f17a03de8799b5b6008f11008bb079a8fac67 (patch)
tree3ebe1046c106fc41403f7ef5fe4cfa4668ba5c73 /src
parentc9d5479ff9f6f9a9e330109aea3b98c2bf030fce (diff)
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
Diffstat (limited to 'src')
-rw-r--r--src/lib/evas/canvas/evas_object_textblock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/evas/canvas/evas_object_textblock.c b/src/lib/evas/canvas/evas_object_textblock.c
index a2d7079fee..6cf26485f9 100644
--- a/src/lib/evas/canvas/evas_object_textblock.c
+++ b/src/lib/evas/canvas/evas_object_textblock.c
@@ -7163,9 +7163,9 @@ evas_textblock_cursor_free(Evas_Textblock_Cursor *cur)
7163EAPI Eina_Bool 7163EAPI Eina_Bool
7164evas_textblock_cursor_is_format(const Evas_Textblock_Cursor *cur) 7164evas_textblock_cursor_is_format(const Evas_Textblock_Cursor *cur)
7165{ 7165{
7166 if ((!cur) || (!cur->node)) return EINA_FALSE;
7166 Evas_Object_Protected_Data *obj = eo_data_scope_get(cur->obj, EVAS_OBJECT_CLASS); 7167 Evas_Object_Protected_Data *obj = eo_data_scope_get(cur->obj, EVAS_OBJECT_CLASS);
7167 evas_object_async_block(obj); 7168 evas_object_async_block(obj);
7168 if (!cur || !cur->node) return EINA_FALSE;
7169 return (_evas_textblock_cursor_node_format_at_pos_get(cur)) ? 7169 return (_evas_textblock_cursor_node_format_at_pos_get(cur)) ?
7170 EINA_TRUE : EINA_FALSE; 7170 EINA_TRUE : EINA_FALSE;
7171} 7171}