summaryrefslogtreecommitdiff
path: root/legacy/elementary/src/lib/elm_interface_atspi_accessible.c
diff options
context:
space:
mode:
authorStefan Schmidt <stefan@osg.samsung.com>2015-11-30 15:15:52 +0100
committerStefan Schmidt <stefan@osg.samsung.com>2015-11-30 16:24:58 +0100
commitd4e5c76b11db062964b42f6c4b939e54922a3702 (patch)
tree1f3a61839d306d3f30d18151bafb06235d031038 /legacy/elementary/src/lib/elm_interface_atspi_accessible.c
parente0148bb0768ec84ea3745f215d2a4e729eacf30b (diff)
atspi: 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.
Diffstat (limited to '')
-rw-r--r--legacy/elementary/src/lib/elm_interface_atspi_accessible.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/legacy/elementary/src/lib/elm_interface_atspi_accessible.c b/legacy/elementary/src/lib/elm_interface_atspi_accessible.c
index 3e3d8c123c..2a38380c8c 100644
--- a/legacy/elementary/src/lib/elm_interface_atspi_accessible.c
+++ b/legacy/elementary/src/lib/elm_interface_atspi_accessible.c
@@ -331,7 +331,7 @@ _elm_interface_atspi_accessible_event_emit(Eo *class EINA_UNUSED, void *pd EINA_
331EOLIAN Elm_Atspi_Event_Handler * 331EOLIAN Elm_Atspi_Event_Handler *
332_elm_interface_atspi_accessible_event_handler_add(Eo *class EINA_UNUSED, void *pd EINA_UNUSED, Eo_Event_Cb cb, void *data) 332_elm_interface_atspi_accessible_event_handler_add(Eo *class EINA_UNUSED, void *pd EINA_UNUSED, Eo_Event_Cb cb, void *data)
333{ 333{
334 Elm_Atspi_Event_Handler *ret = calloc(sizeof(Elm_Atspi_Event_Handler), 1); 334 Elm_Atspi_Event_Handler *ret = calloc(1, sizeof(Elm_Atspi_Event_Handler));
335 335
336 ret->cb = cb; 336 ret->cb = cb;
337 ret->data = data; 337 ret->data = data;
@@ -380,7 +380,7 @@ elm_atspi_relation_free(Elm_Atspi_Relation *relation)
380EAPI Elm_Atspi_Relation * 380EAPI Elm_Atspi_Relation *
381elm_atspi_relation_clone(const Elm_Atspi_Relation *relation) 381elm_atspi_relation_clone(const Elm_Atspi_Relation *relation)
382{ 382{
383 Elm_Atspi_Relation *ret = calloc(sizeof(Elm_Atspi_Relation), 1); 383 Elm_Atspi_Relation *ret = calloc(1, sizeof(Elm_Atspi_Relation));
384 if (!ret) return NULL; 384 if (!ret) return NULL;
385 385
386 ret->type = relation->type; 386 ret->type = relation->type;
@@ -434,7 +434,7 @@ elm_atspi_relation_set_relation_append(Elm_Atspi_Relation_Set *set, Elm_Atspi_Re
434 } 434 }
435 } 435 }
436 436
437 rel = calloc(sizeof(Elm_Atspi_Relation), 1); 437 rel = calloc(1, sizeof(Elm_Atspi_Relation));
438 if (!rel) return EINA_FALSE; 438 if (!rel) return EINA_FALSE;
439 439
440 rel->type = type; 440 rel->type = type;