The memory referenced by "u" pointer is initialized right after the memset() call. --- lib/sdp.c | 1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/lib/sdp.c b/lib/sdp.c index 81e328e..3dcef60 100644 --- a/lib/sdp.c +++ b/lib/sdp.c @@ -1934,7 +1934,6 @@ int sdp_get_uuidseq_attr(const sdp_record_t *rec, uint16_t attr, if (!u) goto fail; - memset(u, 0, sizeof(uuid_t)); *u = d->val.uuid; *seqp = sdp_list_append(*seqp, u); } -- 1.7.5.4 -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html