eina_hash_find should not complain when hash or key is NULL.

SVN revision: 38057
This commit is contained in:
Cedric BAIL 2008-12-09 14:24:08 +00:00
parent 68cfd7839f
commit b0e1863871
1 changed files with 1 additions and 1 deletions

View File

@ -1056,8 +1056,8 @@ eina_hash_find(const Eina_Hash *hash, const void *key)
int key_length;
int hash_num;
EINA_MAGIC_CHECK_HASH(hash);
if ((!hash) || (!key)) return NULL;
EINA_MAGIC_CHECK_HASH(hash);
key_length = hash->key_length_cb(key);
hash_num = hash->key_hash_cb(key, key_length);