This is an automated email from the git hooks/post-receive script.
git pushed a commit to branch devs/dimmus/meson
in repository efl.
View the commit online.
commit 02985a250375cd86a27ea4485f0a92511b9ba5c3
Author: Carsten Haitzler <ras...@rasterman.com>
AuthorDate: Thu May 30 07:29:09 2024 +0100
eina - hash - fix calloc to use right size of and count'
fixes a gcc warning and gcc is technically correct. calloc (num, size)
not calloc (size, num).
@fix
---
src/lib/eina/eina_hash.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/lib/eina/eina_hash.c b/src/lib/eina/eina_hash.c
index a0edb8c692..68091b1f5b 100644
--- a/src/lib/eina/eina_hash.c
+++ b/src/lib/eina/eina_hash.c
@@ -225,7 +225,7 @@ eina_hash_add_alloc_by_hash(Eina_Hash *hash,
if (!hash->buckets)
{
- hash->buckets = calloc(sizeof (Eina_Rbtree *), hash->size);
+ hash->buckets = calloc(hash->size, sizeof(Eina_Rbtree *));
if (!hash->buckets) goto on_error;
hash_head = NULL;
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.