Merge branch 'maint'
* maint: hash: fix lookup_hash semantics
This commit is contained in:
2
hash.c
2
hash.c
@ -70,7 +70,7 @@ void *lookup_hash(unsigned int hash, struct hash_table *table)
|
|||||||
{
|
{
|
||||||
if (!table->array)
|
if (!table->array)
|
||||||
return NULL;
|
return NULL;
|
||||||
return &lookup_hash_entry(hash, table)->ptr;
|
return lookup_hash_entry(hash, table)->ptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
void **insert_hash(unsigned int hash, void *ptr, struct hash_table *table)
|
void **insert_hash(unsigned int hash, void *ptr, struct hash_table *table)
|
||||||
|
Reference in New Issue
Block a user