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:
e4cbf1b
)
fileselector: Fixed wrong allocation in _custom_filter_append
author
Ryuan Choi
<ryuan.choi@gmail.com>
Wed, 1 Jan 2014 06:20:24 +0000
(15:20 +0900)
committer
Ryuan Choi
<ryuan.choi@gmail.com>
Wed, 1 Jan 2014 06:32:32 +0000
(15:32 +0900)
Reported as CID:1147526 by Coverity Scan
legacy/elementary/src/lib/elc_fileselector.c
patch
|
blob
|
history
diff --git
a/legacy/elementary/src/lib/elc_fileselector.c
b/legacy/elementary/src/lib/elc_fileselector.c
index
35b8230
..
d1895bc
100644
(file)
--- a/
legacy/elementary/src/lib/elc_fileselector.c
+++ b/
legacy/elementary/src/lib/elc_fileselector.c
@@
-2024,7
+2024,7
@@
_custom_filter_append(Eo *obj, void *_pd, va_list *list)
ff = _filter_add(sd, filter_name ? filter_name : "custom");
ff->filter_type = ELM_FILESELECTOR_CUSTOM_FILTER;
- ff->filter.custom = malloc(sizeof(Elm_Fileselector_
Filter_Func
));
+ ff->filter.custom = malloc(sizeof(Elm_Fileselector_
Custom_Filter
));
ff->filter.custom->func = func;
ff->filter.custom->data = data;