Insert key and value in the group table, not the main table.
[cascardo/atompub.git] / 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