From: "Gustavo F. Padovan" <[email protected]>
prefix NULL means that the modem needs to be removed
---
plugins/sap.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/plugins/sap.c b/plugins/sap.c
index b128517..6a140b3 100644
--- a/plugins/sap.c
+++ b/plugins/sap.c
@@ -419,13 +419,13 @@ static void bluetooth_sap_remove(const char *prefix)
DBG("%s", prefix);
- if (modem_hash == NULL || prefix == NULL)
+ if (modem_hash == NULL)
return;
g_hash_table_iter_init(&iter, modem_hash);
while (g_hash_table_iter_next(&iter, &key, &value)) {
- if (g_str_has_prefix((char *)key, prefix) == FALSE)
+ if (prefix && g_str_has_prefix((char *)key, prefix) == FALSE)
continue;
g_hash_table_iter_remove(&iter);
--
1.7.6.2
_______________________________________________
ofono mailing list
[email protected]
http://lists.ofono.org/listinfo/ofono