From 1a9faff827c73959eeb4a35f898a591bbf6f5004 Mon Sep 17 00:00:00 2001 From: Tomasz Bursztyka Date: Tue, 17 Apr 2012 13:54:20 +0300 Subject: [PATCH] bluetooth: use g_hash_table_replace instead of insert function --- plugins/bluetooth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/bluetooth.c b/plugins/bluetooth.c index 1c8d3a0..09e318b 100644 --- a/plugins/bluetooth.c +++ b/plugins/bluetooth.c @@ -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); -- 2.7.4