summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Schmidt <stefan@osg.samsung.com>2015-11-30 15:11:06 +0100
committerStefan Schmidt <stefan@osg.samsung.com>2015-11-30 16:24:58 +0100
commit23dc11debca551b35aabcb475420cd3e29df38e5 (patch)
treefffab711436dc3bc748de39eddbc46c95b713d69
parent110aa7768289d7a9cc4ddd7be0298c98451d3663 (diff)
test_access: correct argument order for calloc()
calloc() expects count first and the actual size to allocate as second argument. Say Thank You to smatch for finding this issues for us.
-rw-r--r--src/bin/test_access.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/test_access.c b/src/bin/test_access.c
index ae567ca55..80b8ea36e 100644
--- a/src/bin/test_access.c
+++ b/src/bin/test_access.c
@@ -100,7 +100,7 @@ Evas_Object *gl_access_content_full_get(void *data EINA_UNUSED, Evas_Object *obj
100 100
101 for (i = 0; i < 4; i++) 101 for (i = 0; i < 4; i++)
102 { 102 {
103 Item_Data *id = calloc(sizeof(Item_Data), 1); 103 Item_Data *id = calloc(1, sizeof(Item_Data));
104 id->index = i; 104 id->index = i;
105 105
106 elm_gengrid_item_append(grid, gic, id, NULL, NULL); 106 elm_gengrid_item_append(grid, gic, id, NULL, NULL);
@@ -188,7 +188,7 @@ test_access(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_in
188 188
189 for (i = 1; i < 10; i++) 189 for (i = 1; i < 10; i++)
190 { 190 {
191 Item_Data *id = calloc(sizeof(Item_Data), 1); 191 Item_Data *id = calloc(1, sizeof(Item_Data));
192 id->index = i; 192 id->index = i;
193 193
194 if (i % 4) 194 if (i % 4)