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:
eugeni 2007-05-03 19:47:34 +00:00
parent e4855381f4
commit 1ec5f31f72
1 changed files with 1 additions and 1 deletions

View File

@ -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);
} }