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

Unified Diff: mojo/edk/system/broker_messages.h

Issue 2098273002: [mojo-edk] Initialise padding in mojo::edk::BrokerMessageHeader. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 months 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/edk/system/broker_messages.h
diff --git a/mojo/edk/system/broker_messages.h b/mojo/edk/system/broker_messages.h
index 6ae92bb83fd9884e03d95d54360a196776d9a00a..a67be15d8a10ea5aa105821807acdee3ea8479be 100644
--- a/mojo/edk/system/broker_messages.h
+++ b/mojo/edk/system/broker_messages.h
@@ -41,6 +41,7 @@ inline Channel::MessagePtr CreateBrokerMessage(BrokerMessageType type,
BrokerMessageHeader* header =
reinterpret_cast<BrokerMessageHeader*>(message->mutable_payload());
header->type = type;
+ header->padding = 0;
*out_message_data = reinterpret_cast<T*>(header + 1);
return message;
}
@@ -54,6 +55,7 @@ inline Channel::MessagePtr CreateBrokerMessage(
BrokerMessageHeader* header =
reinterpret_cast<BrokerMessageHeader*>(message->mutable_payload());
header->type = type;
+ header->padding = 0;
return message;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698