diff options
author | Arne Juul <arnej@yahoo-inc.com> | 2018-04-23 08:34:53 +0000 |
---|---|---|
committer | Arne Juul <arnej@yahoo-inc.com> | 2018-04-23 08:36:01 +0000 |
commit | 3f6619c1bbf5c962a9971d56be02128c38d8f4cf (patch) | |
tree | 1988482b2e0228398f5a968e7c6a749beabf3a2c /vespalib | |
parent | e428255c34d56773eb179c7fba4e15618372469a (diff) |
initialize all bytes
* ensures alignment padding is initialized so valgrind is satisfied
Diffstat (limited to 'vespalib')
-rw-r--r-- | vespalib/src/tests/net/send_fd/send_fd_test.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/vespalib/src/tests/net/send_fd/send_fd_test.cpp b/vespalib/src/tests/net/send_fd/send_fd_test.cpp index 077c7495b77..ce7e7f20b30 100644 --- a/vespalib/src/tests/net/send_fd/send_fd_test.cpp +++ b/vespalib/src/tests/net/send_fd/send_fd_test.cpp @@ -65,6 +65,7 @@ void send_fd(SocketHandle &socket, SocketHandle fd) { data.iov_base = &tag; data.iov_len = 1; char buf[CMSG_SPACE(sizeof(int))]; + memset(buf, 0, sizeof(buf)); msg.msg_iov = &data; msg.msg_iovlen = 1; msg.msg_control = buf; |