From 910137e187107e71b690067863f7543bd1a69c23 Mon Sep 17 00:00:00 2001 From: barbieri Date: Wed, 18 Mar 2009 21:27:38 +0000 Subject: [PATCH] Fix null dereference. By Luis Felipe Strano, spotted by clang. git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/edje@39560 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/lib/edje_entry.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib/edje_entry.c b/src/lib/edje_entry.c index 0f8d2c3..9514d75 100644 --- a/src/lib/edje_entry.c +++ b/src/lib/edje_entry.c @@ -307,6 +307,8 @@ _sel_update(Evas_Textblock_Cursor *c, Evas_Object *o, Entry *en) clip = evas_object_clip_get(o); if (en->sel_start) range = evas_textblock_cursor_range_geometry_get(en->sel_start, en->sel_end); + else + return; if (eina_list_count(range) != eina_list_count(en->sel)) { while (en->sel) -- 2.7.4