aboutsummaryrefslogtreecommitdiffstats
path: root/sap
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2011-03-28 16:32:04 +0300
committerJohan Hedberg <johan.hedberg@nokia.com>2011-03-28 16:32:04 +0300
commit2bd4b645a170e0c492fb7664f6a79f16319d88e6 (patch)
tree693a1cc890db818121f6ef14180c1d4b6a33a720 /sap
parent65ee36570563c84abffc6e83851adf865662f81b (diff)
downloadbluez-2bd4b645a170e0c492fb7664f6a79f16319d88e6.tar.gz
bluez-2bd4b645a170e0c492fb7664f6a79f16319d88e6.tar.xz
bluez-2bd4b645a170e0c492fb7664f6a79f16319d88e6.zip
Fix use of unninitialized UUID value in SAP code
Diffstat (limited to 'sap')
-rw-r--r--sap/server.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sap/server.c b/sap/server.c
index 8178f1cd..c9c9a121 100644
--- a/sap/server.c
+++ b/sap/server.c
@@ -201,6 +201,7 @@ static sdp_record_t *create_sap_record(uint8_t channel)
if (!record)
return NULL;
+ sdp_uuid16_create(&root_uuid, PUBLIC_BROWSE_GROUP);
root = sdp_list_append(NULL, &root_uuid);
sdp_set_browse_groups(record, root);
sdp_list_free(root, NULL);