[MPlayer-cvslog] r23232 - trunk/libass/ass_cache.c

eugeni subversion at mplayerhq.hu
Thu May 3 21:47:34 CEST 2007


Author: eugeni
Date: Thu May  3 21:47:34 2007
New Revision: 23232

Log:
Fix stupid bug in r23229.


Modified:
   trunk/libass/ass_cache.c

Modified: trunk/libass/ass_cache.c
==============================================================================
--- trunk/libass/ass_cache.c	(original)
+++ trunk/libass/ass_cache.c	Thu May  3 21:47:34 2007
@@ -136,7 +136,7 @@ void* hashmap_insert(hashmap_t* map, voi
 	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);
 	}



More information about the MPlayer-cvslog mailing list