Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(145)

Unified Diff: mojo/edk/system/child_broker.cc

Issue 1548023002: Clear memory of broker related structs sent over the new Mojo EDK. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | mojo/edk/system/child_broker_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/edk/system/child_broker.cc
diff --git a/mojo/edk/system/child_broker.cc b/mojo/edk/system/child_broker.cc
index 33c96bbff08c3056f7e54e885cef59ac5ec8990b..6903c8204dbd23b393729c8e859407609dc983db 100644
--- a/mojo/edk/system/child_broker.cc
+++ b/mojo/edk/system/child_broker.cc
@@ -106,6 +106,7 @@ void ChildBroker::ConnectMessagePipe(uint64_t pipe_id,
DCHECK(internal::g_io_thread_task_runner->RunsTasksOnCurrentThread());
ConnectMessagePipeMessage data;
+ memset(&data, 0, sizeof(data));
data.pipe_id = pipe_id;
if (pending_connects_.find(pipe_id) != pending_connects_.end()) {
if (!parent_async_channel_) {
« no previous file with comments | « no previous file | mojo/edk/system/child_broker_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698