summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean Guyomarc'h <jean.guyomarch@gmail.com>2014-11-14 06:49:54 +0100
committerCedric BAIL <cedric@osg.samsung.com>2014-11-14 07:34:14 +0100
commit2e93b9550bc6480e51ccdd1b41cff41229898e86 (patch)
tree10993dba1a8d8270360ebe0ea14da9e29a9cf825
parentf75907b6168780721281f41cf40fbfbf02da22bc (diff)
eina: fix calloc() parameters order in eina_share.
Summary: The first parameter must be the count of elements to be allocated. Reviewers: cedric Subscribers: cedric Differential Revision: https://phab.enlightenment.org/D1660 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
-rw-r--r--src/lib/eina/eina_share_common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/eina/eina_share_common.c b/src/lib/eina/eina_share_common.c
index 0907ea10bf..33142dcbb0 100644
--- a/src/lib/eina/eina_share_common.c
+++ b/src/lib/eina/eina_share_common.c
@@ -607,7 +607,7 @@ eina_share_common_init(Eina_Share **_share,
607{ 607{
608 Eina_Share *share; 608 Eina_Share *share;
609 609
610 share = *_share = calloc(sizeof(Eina_Share), 1); 610 share = *_share = calloc(1, sizeof(Eina_Share));
611 if (!share) goto on_error; 611 if (!share) goto on_error;
612 612
613 share->share = calloc(1, sizeof(Eina_Share_Common)); 613 share->share = calloc(1, sizeof(Eina_Share_Common));