[PATCH BlueZ] sdp: Remove unnecessary memset()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux