From e3016c3bc58a19936d623e554379ae2b259602df Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Fri, 12 Feb 2010 17:57:10 -0600 Subject: [PATCH] Fix: Store the modem in the uuid hash The modem is more useful to store than the path, particularly once we track Aliases --- plugins/hfp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/hfp.c b/plugins/hfp.c index b60773e..5c2be83 100644 --- a/plugins/hfp.c +++ b/plugins/hfp.c @@ -579,7 +579,7 @@ static int hfp_create_modem(const char *device) ofono_modem_register(modem); path = ofono_modem_get_path(modem); - g_hash_table_insert(uuid_hash, g_strdup(device), g_strdup(path)); + g_hash_table_insert(uuid_hash, g_strdup(device), modem); return 0; @@ -1053,7 +1053,7 @@ static int hfp_init() } uuid_hash = g_hash_table_new_full(g_str_hash, g_str_equal, - g_free, g_free); + g_free, NULL); adapter_address_hash = g_hash_table_new_full(g_str_hash, g_str_equal, g_free, g_free); -- 2.7.4