From b379b8c409a19dd089876679cd051a2934cd709a Mon Sep 17 00:00:00 2001 From: Ryuan Choi Date: Wed, 1 Jan 2014 15:20:24 +0900 Subject: [PATCH] fileselector: Fixed wrong allocation in _custom_filter_append Reported as CID:1147526 by Coverity Scan --- legacy/elementary/src/lib/elc_fileselector.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/legacy/elementary/src/lib/elc_fileselector.c b/legacy/elementary/src/lib/elc_fileselector.c index 35b8230..d1895bc 100644 --- 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; -- 2.7.4