summaryrefslogtreecommitdiffstats
path: root/content/renderer/gamepad_shared_memory_reader.cc
diff options
context:
space:
mode:
authorjhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-05-10 03:06:55 +0000
committerjhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-05-10 03:06:55 +0000
commit1be2d28892aebc2ba13a72bbbca5ba6cd25ac3e2 (patch)
tree734bf0ab6d5323587bd9a99e40e3cabf23dd7a00 /content/renderer/gamepad_shared_memory_reader.cc
parent808d37a0b6b00c9c03a530fb1b0cc455a247bb30 (diff)
downloadchromium_src-1be2d28892aebc2ba13a72bbbca5ba6cd25ac3e2.zip
chromium_src-1be2d28892aebc2ba13a72bbbca5ba6cd25ac3e2.tar.gz
chromium_src-1be2d28892aebc2ba13a72bbbca5ba6cd25ac3e2.tar.bz2
Coverity: Initialize a member variable.
The variable would otherwise remain uninitialized if the constructor returns early. CID_COUNT=1 CID=103955 BUG=none TEST=none R=groby TBR=jamesr Review URL: https://chromiumcodereview.appspot.com/10378080 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@136232 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/renderer/gamepad_shared_memory_reader.cc')
-rw-r--r--content/renderer/gamepad_shared_memory_reader.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/content/renderer/gamepad_shared_memory_reader.cc b/content/renderer/gamepad_shared_memory_reader.cc
index 3025f99..55c6f62 100644
--- a/content/renderer/gamepad_shared_memory_reader.cc
+++ b/content/renderer/gamepad_shared_memory_reader.cc
@@ -13,7 +13,8 @@
namespace content {
-GamepadSharedMemoryReader::GamepadSharedMemoryReader() {
+GamepadSharedMemoryReader::GamepadSharedMemoryReader()
+ : gamepad_hardware_buffer_(NULL) {
memset(ever_interacted_with_, 0, sizeof(ever_interacted_with_));
CHECK(RenderThread::Get()->Send(new GamepadHostMsg_StartPolling(
&renderer_shared_memory_handle_)));