Insert key and value in the group table, not the main table.
authorThadeu Lima de Souza Cascardo <cascardo@holoscopio.com>
Sat, 7 Feb 2009 01:26:28 +0000 (23:26 -0200)
committerThadeu Lima de Souza Cascardo <cascardo@holoscopio.com>
Sat, 7 Feb 2009 01:26:28 +0000 (23:26 -0200)
In the ghashtable config backend, when inserting a new group/key/value,
we were inserting the new key/value pair into the main table, instead of
the subtable for the group.

config/ghashtable/ghashtable.c

index 59f42f4..ab32036 100644 (file)
@@ -36,7 +36,7 @@ ghashtable_atom_config_set (AtomCtx *ctx, char *group, char *key,
                                           g_free, NULL);
       g_hash_table_replace (table, g_strdup (group), grouptable);
     }
-  g_hash_table_replace (table, g_strdup (key), val);
+  g_hash_table_replace (grouptable, g_strdup (key), val);
 }
 
 void