mirror of https://github.com/mpv-player/mpv
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);
|
hashmap_item_t** next = map->root + (hash % map->nbuckets);
|
||||||
while (*next) {
|
while (*next) {
|
||||||
if (map->key_compare(key, (*next)->key, map->key_size))
|
if (map->key_compare(key, (*next)->key, map->key_size))
|
||||||
return;
|
return (*next)->value;
|
||||||
next = &((*next)->next);
|
next = &((*next)->next);
|
||||||
assert(next);
|
assert(next);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue