diff options
author | Andrei Emeltchenko <andrei.emeltchenko@intel.com> | 2013-11-21 16:23:30 +0200 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2013-11-21 16:43:38 +0200 |
commit | e73bd888beb62c61a7aca240817092d679101e36 (patch) | |
tree | 209993be5595d5d3340075aa7c422a66577296b9 /android/ipc.c | |
parent | ee750796da0ec282a71dc81cc4d582201046b39f (diff) | |
download | bluez-e73bd888beb62c61a7aca240817092d679101e36.tar.gz |
android/ipc: Zero initialize cmsg buffer
This fixes valgrind warnings:
...
Syscall param sendmsg(msg.msg_control) points to uninitialised byte(s)
...
Diffstat (limited to 'android/ipc.c')
-rw-r--r-- | android/ipc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/android/ipc.c b/android/ipc.c index 8467b286c..25c36fd3c 100644 --- a/android/ipc.c +++ b/android/ipc.c @@ -47,6 +47,7 @@ void ipc_send(int sk, uint8_t service_id, uint8_t opcode, uint16_t len, memset(&msg, 0, sizeof(msg)); memset(&m, 0, sizeof(m)); + memset(cmsgbuf, 0, sizeof(cmsgbuf)); m.service_id = service_id; m.opcode = opcode; |