diff options
author | Cidorvan Leite <cidorvan.leite@openbossa.org> | 2008-03-13 19:40:19 +0000 |
---|---|---|
committer | Cidorvan Leite <cidorvan.leite@openbossa.org> | 2008-03-13 19:40:19 +0000 |
commit | 5a948e71ec915d6edff97ecc6451351522129eaa (patch) | |
tree | 52c91d34c0fc1c8bbf2f86422dfe757586ae5df4 /hcid | |
parent | fc8eb9740a846de0724f5580afb3b08bcda1bc1e (diff) |
Removed uuids repeated
Diffstat (limited to 'hcid')
-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); } |