]> granicus.if.org Git - libass/commitdiff
Fix stupid bug in r23229.
authoreugeni <eugeni@b3059339-0415-0410-9bf9-f77b7e298cf2>
Thu, 3 May 2007 19:47:34 +0000 (19:47 +0000)
committereugeni <eugeni@b3059339-0415-0410-9bf9-f77b7e298cf2>
Thu, 3 May 2007 19:47:34 +0000 (19:47 +0000)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23232 b3059339-0415-0410-9bf9-f77b7e298cf2

libass/ass_cache.c

index 5198700fdd5678f6f64fa9a03e29d31f644df98c..a61f9f90c029c12bbaa273ddc7bbcb8b12856f6b 100644 (file)
@@ -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);
        }