forked from enlightenment/efl
cppcheck doesn't like it if u dont first init all data before using
contents of that struct (minus the thing u are about to set) SVN revision: 51545
This commit is contained in:
parent
22b5ace2ab
commit
64d565228a
|
@ -747,6 +747,8 @@ eina_hash_new(Eina_Key_Length key_length_cb,
|
|||
if (!new)
|
||||
goto on_error;
|
||||
|
||||
EINA_MAGIC_SET(new, EINA_MAGIC_HASH);
|
||||
|
||||
new->key_length_cb = key_length_cb;
|
||||
new->key_cmp_cb = key_cmp_cb;
|
||||
new->key_hash_cb = key_hash_cb;
|
||||
|
@ -757,8 +759,6 @@ eina_hash_new(Eina_Key_Length key_length_cb,
|
|||
new->size = 1 << buckets_power_size;
|
||||
new->mask = new->size - 1;
|
||||
|
||||
EINA_MAGIC_SET(new, EINA_MAGIC_HASH);
|
||||
|
||||
return new;
|
||||
|
||||
on_error:
|
||||
|
|
Loading…
Reference in New Issue