summaryrefslogtreecommitdiffstats
path: root/sdpd/main.c
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2004-12-25 17:43:16 +0000
committerMarcel Holtmann <marcel@holtmann.org>2004-12-25 17:43:16 +0000
commitbbda499067067aefc8e642a2784d247ac0331eae (patch)
treea702f2c2ba1716b29c5f3b4d019c4590330ff461 /sdpd/main.c
parentac243219976dab3363bcd3215f963eb0026af788 (diff)
Add memset() to different places to initialize the structures
Diffstat (limited to 'sdpd/main.c')
-rw-r--r--sdpd/main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sdpd/main.c b/sdpd/main.c
index 0efc7d50..eb59a6fa 100644
--- a/sdpd/main.c
+++ b/sdpd/main.c
@@ -318,6 +318,7 @@ static inline void handle_request(int sk, char *data, int len)
if (sa.l2_family == AF_BLUETOOTH) {
struct l2cap_options lo;
+ memset(&lo, 0, sizeof(lo));
size = sizeof(lo);
getsockopt(sk, SOL_L2CAP, L2CAP_OPTIONS, &lo, &size);
req.bdaddr = sa.l2_bdaddr;