bluetooth: use g_hash_table_replace instead of insert function
authorTomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
Tue, 17 Apr 2012 10:54:20 +0000 (13:54 +0300)
committerMarcel Holtmann <marcel@holtmann.org>
Tue, 17 Apr 2012 11:31:22 +0000 (13:31 +0200)
plugins/bluetooth.c

index 1c8d3a0..09e318b 100644 (file)
@@ -446,7 +446,7 @@ static void network_properties_reply(DBusPendingCall *call, void *user_data)
 
        connman_network_set_group(network, ident);
 
-       g_hash_table_insert(bluetooth_networks, g_strdup(path), network);
+       g_hash_table_replace(bluetooth_networks, g_strdup(path), network);
 
 done:
        dbus_message_unref(reply);