billiob pushed a commit to branch master.

http://git.enlightenment.org/apps/ephoto.git/commit/?id=5890d90f846bbc15ac232b7135cbba293dc9f755

commit 5890d90f846bbc15ac232b7135cbba293dc9f755
Author: Boris Faure <[email protected]>
Date:   Sun Sep 25 17:57:14 2016 +0200

    avoid segfault when label is NULL
---
 src/bin/ephoto_thumb_browser.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/bin/ephoto_thumb_browser.c b/src/bin/ephoto_thumb_browser.c
index cb2acf6..95d37da 100644
--- a/src/bin/ephoto_thumb_browser.c
+++ b/src/bin/ephoto_thumb_browser.c
@@ -398,6 +398,9 @@ _thumb_item_text_get(void *data, Evas_Object *obj 
EINA_UNUSED,
 {
    Ephoto_Entry *e = data;
 
+   EINA_SAFETY_ON_NULL_RETURN_VAL(e, NULL);
+   if (!e->label)
+       return NULL;
    return strdup(e->label);
 }
 

-- 


Reply via email to