forked from enlightenment/efl
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:
parent
a50aa2c938
commit
5c91d7aa10
|
@ -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));
|
||||
|
|
Loading…
Reference in New Issue