diff options
author | cevans@chromium.org <cevans@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-12-30 20:09:02 +0000 |
---|---|---|
committer | cevans@chromium.org <cevans@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-12-30 20:09:02 +0000 |
commit | 9422b7dcf2de03f93d223ec86723d22f89798763 (patch) | |
tree | 4cccb448455ec7c77b55a47dc40d78e0d93ad14b /ipc | |
parent | 83f2e0564f0d589c0a8d047cc3c47bb828849c0f (diff) | |
download | chromium_src-9422b7dcf2de03f93d223ec86723d22f89798763.zip chromium_src-9422b7dcf2de03f93d223ec86723d22f89798763.tar.gz chromium_src-9422b7dcf2de03f93d223ec86723d22f89798763.tar.bz2 |
Defense-in-depth: initialize some variables.
BUG=NONE
TEST=NONE
Review URL: http://codereview.chromium.org/517025
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@35387 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ipc')
-rw-r--r-- | ipc/ipc_message_utils.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ipc/ipc_message_utils.h b/ipc/ipc_message_utils.h index 165e7f9..76811a7 100644 --- a/ipc/ipc_message_utils.h +++ b/ipc/ipc_message_utils.h @@ -63,13 +63,13 @@ class MessageIterator { explicit MessageIterator(const Message& m) : msg_(m), iter_(NULL) { } int NextInt() const { - int val; + int val = -1; if (!msg_.ReadInt(&iter_, &val)) NOTREACHED(); return val; } intptr_t NextIntPtr() const { - intptr_t val; + intptr_t val = 0; if (!msg_.ReadIntPtr(&iter_, &val)) NOTREACHED(); return val; |