path: root/src/bin/elementary
diff options
authorJunsuChoi <jsuya.choi@samsung.com>2018-09-19 16:40:51 +0900
committerSangHyeon Jade Lee <sh10233.lee@samsung.com>2018-09-19 16:40:51 +0900
commit2948bacdb6ad3587b8997e1ad2b4638007979ff9 (patch)
tree6ab3d1fa0a514ff37127ed9c8ada43ec8884bca4 /src/bin/elementary
parentgenlist: fix item show/bring in coordinate calculation with zero-sized pan. (diff)
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
Diffstat (limited to 'src/bin/elementary')
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/elementary/test_ui_tab_pager.c b/src/bin/elementary/test_ui_tab_pager.c
index 1ed8dba8df..50fa6655bd 100644
--- a/src/bin/elementary/test_ui_tab_pager.c
+++ b/src/bin/elementary/test_ui_tab_pager.c
@@ -165,7 +165,7 @@ 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;