hermet pushed a commit to branch master. http://git.enlightenment.org/tools/enventor.git/commit/?id=1c4ee73805d79bace4da508250d85157618afaf1
commit 1c4ee73805d79bace4da508250d85157618afaf1 Author: ChunEon Park <her...@hermet.pe.kr> Date: Sat Mar 8 03:20:48 2014 +0900 search - prevent crash. Don't access string pointer if the entry doesn't have text. --- src/bin/search.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/bin/search.c b/src/bin/search.c index 0853a63..1266693 100644 --- a/src/bin/search.c +++ b/src/bin/search.c @@ -91,6 +91,7 @@ find_forward_proc(search_data *sd) Eina_Bool need_iterate = EINA_TRUE; const char *text = elm_entry_entry_get(sd->entry); + if (!text) return; char *utf8 = elm_entry_markup_to_utf8(text); //get the character position begun with searching. @@ -142,6 +143,7 @@ find_backward_proc(search_data *sd) int len; const char *text = elm_entry_entry_get(sd->entry); + if (!text) return; char *utf8 = elm_entry_markup_to_utf8(text); //get the character position begun with searching. --