From 241196641f9639b5f2b47c8e3f3c2d4d6034dfb6 Mon Sep 17 00:00:00 2001 From: WooHyun Jung Date: Tue, 20 Sep 2016 13:40:37 +0900 Subject: [PATCH] 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'; -- 2.7.4