From 1ee5ccd91526b59ee871c9b09c89e117ff2e73bf Mon Sep 17 00:00:00 2001 From: JunsuChoi Date: Wed, 19 Sep 2018 17:10:32 +0900 Subject: [PATCH] efl_ui_tab_pager : Fix type mismatch for calloc Summary: Fix type mismatch. The return value of function 'calloc' is cast to type 'App_Data *', which doesn't match the sizeof expression 'sizeof (ad)' passed as its 2nd argument 'sizeof (ad)'. The size of the result is 8 bytes, value of the sizeof expression is 4. Test Plan: N/A Reviewers: bowonryu, SanghyeonLee Reviewed By: bowonryu, SanghyeonLee Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D7067 Change-Id: I2bd5cc58056c97c288e1bfbab93705568ba2b5f4 --- src/bin/elementary/test_ui_tab_pager.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/bin/elementary/test_ui_tab_pager.c b/src/bin/elementary/test_ui_tab_pager.c index 1ed8dba..23e71fb 100644 --- a/src/bin/elementary/test_ui_tab_pager.c +++ b/src/bin/elementary/test_ui_tab_pager.c @@ -165,7 +165,8 @@ test_ui_tab_pager(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *ev efl_ui_pager_current_page_set(tp, 0); - ad = calloc(1, sizeof(ad)); + ad = (App_Data*)calloc(1, sizeof(App_Data)); + ad->navi = navi; ad->tab_pager = tp; -- 2.7.4