projects
/
platform
/
upstream
/
efl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fa3af69
)
elm fileselector: add null checking before strlen
author
WooHyun Jung
<wh0705.jung@samsung.com>
Tue, 20 Sep 2016 04:40:37 +0000
(13:40 +0900)
committer
WooHyun Jung
<wh0705.jung@samsung.com>
Tue, 20 Sep 2016 04:40:37 +0000
(13:40 +0900)
src/lib/elementary/elc_fileselector.c
patch
|
blob
|
history
diff --git
a/src/lib/elementary/elc_fileselector.c
b/src/lib/elementary/elc_fileselector.c
index
cc3a065
..
d697a50
100644
(file)
--- 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';