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 06:49:59 +0100
commit5c91d7aa106291cf18e1a675e2283ae6932c367a (patch)
tree5705a33044780de54246caaa0038eb24db91351a
parenta50aa2c9388540a00bbb75bab6763e0d07cbad9e (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));