soylent r291 - trunk/libsoylent



Author: svenp
Date: Mon Aug 18 12:50:59 2008
New Revision: 291
URL: http://svn.gnome.org/viewvc/soylent?rev=291&view=rev

Log:
fixed: is_im_attribute didn't work because of NULL keys in hash-table

Modified:
   trunk/libsoylent/soylent.c

Modified: trunk/libsoylent/soylent.c
==============================================================================
--- trunk/libsoylent/soylent.c	(original)
+++ trunk/libsoylent/soylent.c	Mon Aug 18 12:50:59 2008
@@ -40,7 +40,7 @@
 {
   McAccount *account = mc_account_lookup (name);
   const gchar *protocol_name = sl_priv_util_get_protocol_name_from_account (account);
-  g_hash_table_insert (im_protocols, (gpointer) protocol_name, NULL);
+  g_hash_table_insert (im_protocols, (gpointer) protocol_name, "");
   sl_debug_book ("discovered im attribute \"%s\"", protocol_name);
 }
 
@@ -54,7 +54,7 @@
   for (; accounts != NULL; accounts = accounts->next)
     {
       const gchar *protocol_name = sl_priv_util_get_protocol_name_from_account (accounts->data);
-      g_hash_table_insert (im_protocols, (gpointer) protocol_name, NULL);
+      g_hash_table_insert (im_protocols, (gpointer) protocol_name, "");
       sl_debug_book ("discovered im attribute \"%s\"", protocol_name);
     }
   accounts = g_list_first (accounts);



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