diff options
author | finnur@chromium.org <finnur@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-30 10:19:53 +0000 |
---|---|---|
committer | finnur@chromium.org <finnur@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-30 10:19:53 +0000 |
commit | 5c622afffc49b36587b4e80ec02d2e57bd641b99 (patch) | |
tree | 1b328344262e476a60e7c13485ab0e3999c334bd /ipc | |
parent | 116e9ee6878255541a842a0bb5be08bf1997e2b0 (diff) | |
download | chromium_src-5c622afffc49b36587b4e80ec02d2e57bd641b99.zip chromium_src-5c622afffc49b36587b4e80ec02d2e57bd641b99.tar.gz chromium_src-5c622afffc49b36587b4e80ec02d2e57bd641b99.tar.bz2 |
Initialize struct member in LogData.
BUG=None
TEST=None
CID=13235, 1234.
Review URL: http://codereview.chromium.org/6731040
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@79811 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ipc')
-rw-r--r-- | ipc/ipc_message_utils.cc | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/ipc/ipc_message_utils.cc b/ipc/ipc_message_utils.cc index d5df42f..9492a11 100644 --- a/ipc/ipc_message_utils.cc +++ b/ipc/ipc_message_utils.cc @@ -437,7 +437,12 @@ void ParamTraits<IPC::ChannelHandle>::Log(const param_type& p, l->append(")"); } -LogData::LogData() { +LogData::LogData() + : routing_id(0), + type(0), + sent(0), + receive(0), + dispatch(0) { } LogData::~LogData() { @@ -455,7 +460,7 @@ void ParamTraits<LogData>::Write(Message* m, const param_type& p) { } bool ParamTraits<LogData>::Read(const Message* m, void** iter, param_type* r) { - int type; + int type = -1; bool result = ReadParam(m, iter, &r->channel) && ReadParam(m, iter, &r->routing_id) && |