[libpeas] And make the hash table useful



commit 7d2762500d4d72d85562a386bfe7a44975d8002b
Author: Bastien Nocera <hadess hadess net>
Date:   Tue Jun 15 16:00:53 2010 +0100

    And make the hash table useful
    
    Because g_direct_hash should only be used when a pointer
    is used as the key, not for strings.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=621655

 libpeas/peas-plugin-info.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libpeas/peas-plugin-info.c b/libpeas/peas-plugin-info.c
index 372451d..4c0663b 100644
--- a/libpeas/peas-plugin-info.c
+++ b/libpeas/peas-plugin-info.c
@@ -154,7 +154,7 @@ parse_extra_keys (PeasPluginInfo   *info,
 
       if (info->keys == NULL)
         {
-          info->keys = g_hash_table_new_full (g_direct_hash,
+          info->keys = g_hash_table_new_full (g_str_hash,
                                               g_str_equal,
                                               g_free,
                                               value_free);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]