rimmed pushed a commit to branch master.

http://git.enlightenment.org/tools/eflete.git/commit/?id=4ca868480bdde97e791bc100b5973689963c2d3f

commit 4ca868480bdde97e791bc100b5973689963c2d3f
Author: Vitalii Vorobiov <vi.vorob...@samsung.com>
Date:   Wed Jan 27 14:15:21 2016 +0000

    colorclass_manager: use mem_calloc instead mem_malloc and memset
---
 src/bin/ui/colorclass_manager.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/bin/ui/colorclass_manager.c b/src/bin/ui/colorclass_manager.c
index 53642f1..fcd8a95 100644
--- a/src/bin/ui/colorclass_manager.c
+++ b/src/bin/ui/colorclass_manager.c
@@ -238,8 +238,7 @@ _on_selected(void *data,
 
    assert(ccl != NULL);
 
-   ColorClassData *current_color_data = (ColorClassData 
*)mem_malloc(sizeof(ColorClassData));
-   memset(current_color_data, 0x0, sizeof(ColorClassData));
+   ColorClassData *current_color_data = (ColorClassData *)mem_calloc(1, 
sizeof(ColorClassData));
 
    edit->current_ccl = ccl;
 

-- 


Reply via email to