From e733c5e3123192bd67832574a6e7f0db0a10f7a7 Mon Sep 17 00:00:00 2001 From: Thadeu Lima de Souza Cascardo Date: Fri, 6 Feb 2009 23:26:28 -0200 Subject: [PATCH] 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. --- config/ghashtable/ghashtable.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.20.1