diff options
Diffstat (limited to 'ipc')
-rw-r--r-- | ipc/ipc_channel_posix.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ipc/ipc_channel_posix.cc b/ipc/ipc_channel_posix.cc index 4ccf712..7aa04d2 100644 --- a/ipc/ipc_channel_posix.cc +++ b/ipc/ipc_channel_posix.cc @@ -309,6 +309,8 @@ Channel::ChannelImpl::ChannelImpl(const IPC::ChannelHandle& channel_handle, pipe_name_(channel_handle.name), listener_(listener), must_unlink_(false) { + memset(input_buf_, 0, sizeof(input_buf_)); + memset(input_cmsg_buf_, 0, sizeof(input_cmsg_buf_)); if (!CreatePipe(channel_handle)) { // The pipe may have been closed already. const char *modestr = (mode_ & MODE_SERVER_FLAG) ? "server" : "client"; |