From 83f9f9a65be98aeff76b6f087b85ec65773b14dd Mon Sep 17 00:00:00 2001 From: Tomasz Bursztyka Date: Tue, 17 Apr 2012 13:54:22 +0300 Subject: [PATCH] task: use g_hash_table_replace instead of insert function --- src/task.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/task.c b/src/task.c index 8be3b25..9adc315 100644 --- a/src/task.c +++ b/src/task.c @@ -240,7 +240,7 @@ int connman_task_set_notify(struct connman_task *task, const char *member, notify->func = function; notify->data = user_data; - g_hash_table_insert(task->notify, g_strdup(member), notify); + g_hash_table_replace(task->notify, g_strdup(member), notify); return 0; } -- 2.7.4