From 068ea1c86437fd77a82d06b8f2ee50c5778b6134 Mon Sep 17 00:00:00 2001 From: Anderson Lizardo Date: Fri, 18 May 2012 16:33:03 -0400 Subject: [PATCH] sdp: Remove unnecessary memset() The memory referenced by "u" pointer is initialized right after the memset() call. --- lib/sdp.c | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/sdp.c b/lib/sdp.c index 81e328e86..3dcef60e6 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); } -- 2.47.3