rimmed pushed a commit to branch master.

http://git.enlightenment.org/tools/eflete.git/commit/?id=956d868df91121fe373bedb0dcd7bd8199574f7c

commit 956d868df91121fe373bedb0dcd7bd8199574f7c
Author: Vitalii Vorobiov <vi.vorob...@samsung.com>
Date:   Tue Feb 2 15:15:21 2016 +0000

    style_manager: use mem_calloc
---
 src/bin/ui/style_manager.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/bin/ui/style_manager.c b/src/bin/ui/style_manager.c
index cfa900b..a109794 100644
--- a/src/bin/ui/style_manager.c
+++ b/src/bin/ui/style_manager.c
@@ -142,8 +142,7 @@ _on_glit_selected(void *data,
 
    Elm_Object_Item *glit_parent = elm_genlist_item_parent_get(glit);
 
-   Style_Data *current_style = (Style_Data *)mem_malloc(sizeof(Style_Data));
-   memset(current_style, 0x0, sizeof(Style_Data));
+   Style_Data *current_style = (Style_Data *)mem_calloc(1, sizeof(Style_Data));
 
    edje_edit_obj = ap.project->global_object;
 

-- 


Reply via email to