From: Thadeu Lima de Souza Cascardo Date: Sat, 7 Feb 2009 01:26:28 +0000 (-0200) Subject: Insert key and value in the group table, not the main table. X-Git-Url: http://git.cascardo.info/?p=cascardo%2Fatompub.git;a=commitdiff_plain;h=e733c5e3123192bd67832574a6e7f0db0a10f7a7 Insert key and value in the group table, not the main table. 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. --- diff --git a/config/ghashtable/ghashtable.c b/config/ghashtable/ghashtable.c index 59f42f4..ab32036 100644 --- a/config/ghashtable/ghashtable.c +++ b/config/ghashtable/ghashtable.c @@ -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