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>
This commit is contained in:
Jean Guyomarc'h 2014-11-14 06:49:54 +01:00 committed by Cedric BAIL
parent a50aa2c938
commit 5c91d7aa10
1 changed files with 1 additions and 1 deletions

View File

@ -607,7 +607,7 @@ eina_share_common_init(Eina_Share **_share,
{
Eina_Share *share;
share = *_share = calloc(sizeof(Eina_Share), 1);
share = *_share = calloc(1, sizeof(Eina_Share));
if (!share) goto on_error;
share->share = calloc(1, sizeof(Eina_Share_Common));