summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorWooHyun Jung <wh0705.jung@samsung.com>2016-09-20 13:40:37 +0900
committerWooHyun Jung <wh0705.jung@samsung.com>2016-09-20 13:40:37 +0900
commit241196641f9639b5f2b47c8e3f3c2d4d6034dfb6 (patch)
treebc26994e3d723020508c669084687cd0a66110a6 /src
parentfa3af69e0c8e6f5fe459f1de006b5f62bd14fef9 (diff)
elm fileselector: add null checking before strlen
Diffstat (limited to 'src')
-rw-r--r--src/lib/elementary/elc_fileselector.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/elementary/elc_fileselector.c b/src/lib/elementary/elc_fileselector.c
index cc3a0655b0..d697a50e75 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)
1584 char buf[PATH_MAX]; 1584 char buf[PATH_MAX];
1585 const char *en; 1585 const char *en;
1586 en = elm_entry_entry_get(searchbar); 1586 en = elm_entry_entry_get(searchbar);
1587 if (strlen(en) > 0) 1587 if (en && strlen(en) > 0)
1588 { 1588 {
1589 memmove(buf, en, strlen(en) -1); 1589 memmove(buf, en, strlen(en) -1);
1590 buf[strlen(en) -1] = '\0'; 1590 buf[strlen(en) -1] = '\0';