rimmed pushed a commit to branch master.

http://git.enlightenment.org/tools/eflete.git/commit/?id=67910ffa05b5695e6c7502ee0b3d6b63508a4c1d

commit 67910ffa05b5695e6c7502ee0b3d6b63508a4c1d
Author: Vitalii Vorobiov <vi.vorob...@samsung.com>
Date:   Fri Jan 15 16:43:53 2016 +0000

    live_genlist: fix SIGSEV on strdup NULL into text part
---
 src/bin/ui/live_view/elementary/live_genlist.c | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/src/bin/ui/live_view/elementary/live_genlist.c 
b/src/bin/ui/live_view/elementary/live_genlist.c
index 59e83ea..a946070 100644
--- a/src/bin/ui/live_view/elementary/live_genlist.c
+++ b/src/bin/ui/live_view/elementary/live_genlist.c
@@ -96,10 +96,16 @@ _glist_text_get(void        *data __UNUSED__,
    Demo_Part *demo_part;
    Eina_List *l = NULL;
 
+
    EINA_LIST_FOREACH(part_list, l, demo_part)
      {
         if (!strcmp(demo_part->name, part))
-          return strdup(demo_part->text_content);
+          {
+             if (!demo_part->text_content)
+               return NULL;
+             else
+               return strdup(demo_part->text_content);
+          }
      }
 
    return NULL;

-- 


Reply via email to