cedric pushed a commit to branch efl-1.12.

http://git.enlightenment.org/core/efl.git/commit/?id=2e93b9550bc6480e51ccdd1b41cff41229898e86

commit 2e93b9550bc6480e51ccdd1b41cff41229898e86
Author: Jean Guyomarc'h <[email protected]>
Date:   Fri Nov 14 06:49:54 2014 +0100

    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 <[email protected]>
---
 src/lib/eina/eina_share_common.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lib/eina/eina_share_common.c b/src/lib/eina/eina_share_common.c
index 0907ea1..33142dc 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,
 {
    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));

-- 


Reply via email to