diff options
author | jhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-02-08 02:25:33 +0000 |
---|---|---|
committer | jhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-02-08 02:25:33 +0000 |
commit | 3c810bb76cc6c27a3a46ca94c16ee81b78c30bf6 (patch) | |
tree | 62a6b7777b170d89e7051b9f4ea6ec9d5a65ab55 /ppapi | |
parent | d6cc2749d2f90acc2d92a526c1d2cbebbc101a19 (diff) | |
download | chromium_src-3c810bb76cc6c27a3a46ca94c16ee81b78c30bf6.zip chromium_src-3c810bb76cc6c27a3a46ca94c16ee81b78c30bf6.tar.gz chromium_src-3c810bb76cc6c27a3a46ca94c16ee81b78c30bf6.tar.bz2 |
Coverity: Initialize member variables.
CID_COUNT=13
CID=102812,102838,102863,102867,102875,102891,102906,102924,102947,102964,
103070,103246,103259
BUG=none
TEST=none
R=groby
Review URL: https://chromiumcodereview.appspot.com/9307114
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@120913 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi')
-rw-r--r-- | ppapi/native_client/src/shared/ppapi_proxy/ppp_instance_combined.cc | 4 | ||||
-rw-r--r-- | ppapi/native_client/src/trusted/plugin/module_ppapi.cc | 6 |
2 files changed, 7 insertions, 3 deletions
diff --git a/ppapi/native_client/src/shared/ppapi_proxy/ppp_instance_combined.cc b/ppapi/native_client/src/shared/ppapi_proxy/ppp_instance_combined.cc index b3af590..054c2ec 100644 --- a/ppapi/native_client/src/shared/ppapi_proxy/ppp_instance_combined.cc +++ b/ppapi/native_client/src/shared/ppapi_proxy/ppp_instance_combined.cc @@ -1,16 +1,18 @@ -// Copyright (c) 2011 The Chromium Authors. All rights reserved. +// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "ppapi/native_client/src/shared/ppapi_proxy/ppp_instance_combined.h" #include <stdlib.h> +#include <string.h> namespace ppapi_proxy { PPP_Instance_Combined::PPP_Instance_Combined() : initialized_(false), did_change_view_1_0_(NULL) { + memset(&instance_1_1_, 0, sizeof(instance_1_1_)); } void PPP_Instance_Combined::Init1_0(const PPP_Instance_1_0* instance_if) { diff --git a/ppapi/native_client/src/trusted/plugin/module_ppapi.cc b/ppapi/native_client/src/trusted/plugin/module_ppapi.cc index 6cde6b8c..bb2acfd 100644 --- a/ppapi/native_client/src/trusted/plugin/module_ppapi.cc +++ b/ppapi/native_client/src/trusted/plugin/module_ppapi.cc @@ -1,5 +1,5 @@ /* - * Copyright (c) 2011 The Chromium Authors. All rights reserved. + * Copyright (c) 2012 The Chromium Authors. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ @@ -19,7 +19,9 @@ namespace plugin { class ModulePpapi : public pp::Module { public: - ModulePpapi() : pp::Module(), init_was_successful_(false) { + ModulePpapi() : pp::Module(), + init_was_successful_(false), + private_interface_(NULL) { MODULE_PRINTF(("ModulePpapi::ModulePpapi (this=%p)\n", static_cast<void*>(this))); } |