diff options
Diffstat (limited to 'hcid/adapter.c')
-rw-r--r-- | hcid/adapter.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/hcid/adapter.c b/hcid/adapter.c index 603097ad..461b8064 100644 --- a/hcid/adapter.c +++ b/hcid/adapter.c @@ -3354,7 +3354,8 @@ static void discover_services_cb(gpointer user_data, sdp_list_t *recs, int err) if (sdp_get_service_classes(rec, &svcclass) == 0) { /* Extract the first element and skip the remainning */ gchar *uuid_str = bt_uuid2string(svcclass->data); - if (uuid_str) + if (uuid_str && !g_slist_find_custom(uuids, uuid_str, + (GCompareFunc) strcmp)) uuids = g_slist_append(uuids, uuid_str); sdp_list_free(svcclass, free); } |