From 698265a251da51df536b99d20cc8c7e0c10c7423 Mon Sep 17 00:00:00 2001 From: KoziarekBeata Date: Wed, 10 Oct 2012 08:06:27 +0000 Subject: [PATCH] From: KoziarekBeata Subject: [E-devel] [Edje][Patch] Patch with NULL checks for some functions in edje_entry file This patch contains NULL checks for some functions in edje_entry file. Lack of these NULL checks after calling these function causes segmentation faults. SVN revision: 77719 --- legacy/edje/src/lib/edje_entry.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/legacy/edje/src/lib/edje_entry.c b/legacy/edje/src/lib/edje_entry.c index d5530ab6e4..9fc5201921 100644 --- a/legacy/edje/src/lib/edje_entry.c +++ b/legacy/edje/src/lib/edje_entry.c @@ -217,6 +217,7 @@ _text_filter_text_prepend(Entry *en, Evas_Textblock_Cursor *c, const char *text) Edje_Text_Insert_Filter_Callback *cb; Eina_List *l; + EINA_SAFETY_ON_NULL_RETURN(text); text2 = strdup(text); EINA_LIST_FOREACH(en->rp->edje->text_insert_filter_callbacks, l, cb) { @@ -243,6 +244,7 @@ _text_filter_format_prepend(Entry *en, Evas_Textblock_Cursor *c, const char *tex Edje_Text_Insert_Filter_Callback *cb; Eina_List *l; + EINA_SAFETY_ON_NULL_RETURN(text); text2 = strdup(text); EINA_LIST_FOREACH(en->rp->edje->text_insert_filter_callbacks, l, cb) { @@ -319,6 +321,7 @@ _text_filter_markup_prepend(Entry *en, Evas_Textblock_Cursor *c, const char *tex Edje_Text_Insert_Filter_Callback *cb; Eina_List *l; + EINA_SAFETY_ON_NULL_RETURN(text); text2 = strdup(text); EINA_LIST_FOREACH(en->rp->edje->text_insert_filter_callbacks, l, cb) {