diff src/audacious/pluginenum.c @ 2624:840fb578a834 trunk

[svn] - [security, backport to 1.3] fix improper comparisons of hashtables used by the plugin loader.
author nenolod
date Fri, 16 Mar 2007 00:25:44 -0700
parents 0ad10a95ed10
children c3cd6e47faf6
line wrap: on
line diff
--- a/src/audacious/pluginenum.c	Thu Mar 15 19:25:27 2007 -0700
+++ b/src/audacious/pluginenum.c	Fri Mar 16 00:25:44 2007 -0700
@@ -281,13 +281,7 @@
         return;
     }
 
-    /*
-     * FIXME: this collides in many cases. this is really bad.
-     * i have no idea why we use a hashtable here, there is no point, when
-     * a list of enabled plugins would realistically offer the same 
-     * scalability.                                       - nenolod
-     */
-    plugin_matrix = g_hash_table_new_full(g_str_hash, g_int_equal, g_free,
+    plugin_matrix = g_hash_table_new_full(g_str_hash, g_str_equal, g_free,
                                           NULL);
 
 #ifndef DISABLE_USER_PLUGIN_DIR