woohyun pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=241196641f9639b5f2b47c8e3f3c2d4d6034dfb6

commit 241196641f9639b5f2b47c8e3f3c2d4d6034dfb6
Author: WooHyun Jung <wh0705.j...@samsung.com>
Date:   Tue Sep 20 13:40:37 2016 +0900

    elm fileselector: add null checking before strlen
---
 src/lib/elementary/elc_fileselector.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lib/elementary/elc_fileselector.c 
b/src/lib/elementary/elc_fileselector.c
index cc3a065..d697a50 100644
--- a/src/lib/elementary/elc_fileselector.c
+++ b/src/lib/elementary/elc_fileselector.c
@@ -1584,7 +1584,7 @@ _files_key_down(void *data, const Efl_Event *event)
           char buf[PATH_MAX];
           const char *en;
           en = elm_entry_entry_get(searchbar);
-          if (strlen(en) > 0)
+          if (en && strlen(en) > 0)
             {
                memmove(buf, en, strlen(en) -1);
                buf[strlen(en) -1] = '\0';

-- 


Reply via email to