diff options
author | apatrick@google.com <apatrick@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-12-05 00:00:58 +0000 |
---|---|---|
committer | apatrick@google.com <apatrick@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-12-05 00:00:58 +0000 |
commit | 15b97af03991854f99a43848ca1ac84567040d0a (patch) | |
tree | 6f44a1d5f3d3bba3a9627ce29bcac23b16302abb /ipc | |
parent | 8c7e08737779912909cb6b7914da535bc4f40ba2 (diff) | |
download | chromium_src-15b97af03991854f99a43848ca1ac84567040d0a.zip chromium_src-15b97af03991854f99a43848ca1ac84567040d0a.tar.gz chromium_src-15b97af03991854f99a43848ca1ac84567040d0a.tar.bz2 |
Fixing valgrind issues.
TEST=none
BUG=none
Review URL: http://codereview.chromium.org/460081
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@33892 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ipc')
-rw-r--r-- | ipc/ipc_message.cc | 2 | ||||
-rw-r--r-- | ipc/ipc_message.h | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/ipc/ipc_message.cc b/ipc/ipc_message.cc index 7e5b77b..a532a8d 100644 --- a/ipc/ipc_message.cc +++ b/ipc/ipc_message.cc @@ -23,6 +23,7 @@ Message::Message() header()->routing = header()->type = header()->flags = 0; #if defined(OS_POSIX) header()->num_fds = 0; + header()->pad = 0; #endif InitLoggingVariables(); } @@ -34,6 +35,7 @@ Message::Message(int32 routing_id, uint32 type, PriorityValue priority) header()->flags = priority; #if defined(OS_POSIX) header()->num_fds = 0; + header()->pad = 0; #endif InitLoggingVariables(); } diff --git a/ipc/ipc_message.h b/ipc/ipc_message.h index 8268fce..a9ad9a4 100644 --- a/ipc/ipc_message.h +++ b/ipc/ipc_message.h @@ -223,6 +223,7 @@ class Message : public Pickle { uint32 flags; // specifies control flags for the message #if defined(OS_POSIX) uint16 num_fds; // the number of descriptors included with this message + uint16 pad; // explicitly initialize this to appease valgrind #endif }; #pragma pack(pop) |