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

Unified Diff: content/browser/gamepad/platform_data_fetcher_win.cc

Issue 10833006: Coverity: Initialize member variables. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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 | « chrome/browser/policy/url_blacklist_manager.cc ('k') | content/common/gpu/media/vaapi_h264_decoder.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/gamepad/platform_data_fetcher_win.cc
diff --git a/content/browser/gamepad/platform_data_fetcher_win.cc b/content/browser/gamepad/platform_data_fetcher_win.cc
index 8a50a38694e3ba7409644ed04ec67f2b270dec9c..92587a4df2c0057f76f0a82f79914e7516f1fd0c 100644
--- a/content/browser/gamepad/platform_data_fetcher_win.cc
+++ b/content/browser/gamepad/platform_data_fetcher_win.cc
@@ -147,6 +147,8 @@ void GamepadPlatformDataFetcherWin::GetGamepadData(WebGamepads* pads,
}
bool GamepadPlatformDataFetcherWin::GetXinputDllFunctions() {
+ xinput_get_capabilities_ = NULL;
+ xinput_get_state_ = NULL;
xinput_enable_ = static_cast<XInputEnableFunc>(
xinput_dll_.GetFunctionPointer("XInputEnable"));
if (!xinput_enable_)
« no previous file with comments | « chrome/browser/policy/url_blacklist_manager.cc ('k') | content/common/gpu/media/vaapi_h264_decoder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698