diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2004-12-25 17:43:16 +0000 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2004-12-25 17:43:16 +0000 |
commit | bbda499067067aefc8e642a2784d247ac0331eae (patch) | |
tree | a702f2c2ba1716b29c5f3b4d019c4590330ff461 /sdpd/main.c | |
parent | ac243219976dab3363bcd3215f963eb0026af788 (diff) |
Add memset() to different places to initialize the structures
Diffstat (limited to 'sdpd/main.c')
-rw-r--r-- | sdpd/main.c | 1 |
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; |