changeset 1645:d3cd4db23f55

Fix for double-inserted features
author Myhailo Danylenko <isbear@ukrpost.net>
date Tue, 03 Nov 2009 12:51:14 +0200
parents 73fc85ea0b4b
children 472cd6ac20fa
files mcabber/src/caps.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mcabber/src/caps.c	Tue Nov 03 22:38:02 2009 +0100
+++ b/mcabber/src/caps.c	Tue Nov 03 12:51:14 2009 +0200
@@ -94,7 +94,7 @@
   c = g_hash_table_lookup(caps_cache, hash);
   if (c) {
     char *f = g_strdup(feature);
-    g_hash_table_insert(c->features, f, f);
+    g_hash_table_replace(c->features, f, f);
   }
 }