mirror of
https://github.com/mpv-player/mpv.git
synced 2024-09-20 20:03:10 +02:00
Fix stupid bug in r23229.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23232 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
e4855381f4
commit
1ec5f31f72
@ -136,7 +136,7 @@ void* hashmap_insert(hashmap_t* map, void* key, void* value)
|
||||
hashmap_item_t** next = map->root + (hash % map->nbuckets);
|
||||
while (*next) {
|
||||
if (map->key_compare(key, (*next)->key, map->key_size))
|
||||
return;
|
||||
return (*next)->value;
|
||||
next = &((*next)->next);
|
||||
assert(next);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user