diff options
author | finnur@chromium.org <finnur@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-28 10:45:01 +0000 |
---|---|---|
committer | finnur@chromium.org <finnur@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-28 10:45:01 +0000 |
commit | 0cf986fdacf68aa07f1edbd907d5d1b336950c22 (patch) | |
tree | 2ca577940ce466210e2cfe16270285a54a2f70ef /ppapi/proxy | |
parent | ff4968f34d58e12a60cc1cee2ef4d3a9692bf740 (diff) | |
download | chromium_src-0cf986fdacf68aa07f1edbd907d5d1b336950c22.zip chromium_src-0cf986fdacf68aa07f1edbd907d5d1b336950c22.tar.gz chromium_src-0cf986fdacf68aa07f1edbd907d5d1b336950c22.tar.bz2 |
Initialize a few uninitialized member variables and structs in PPAPI.
BUG=None
TEST=None
CID=14043, 14386, 14232, 14230, 14112, 14111, 14110, 14109, 14108, 14231, 14042, 14187, 14664.
Review URL: http://codereview.chromium.org/6676145
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@79540 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/proxy')
-rw-r--r-- | ppapi/proxy/ppb_var_deprecated_proxy.cc | 2 | ||||
-rw-r--r-- | ppapi/proxy/serialized_structs.cc | 8 | ||||
-rw-r--r-- | ppapi/proxy/serialized_var.cc | 4 |
3 files changed, 10 insertions, 4 deletions
diff --git a/ppapi/proxy/ppb_var_deprecated_proxy.cc b/ppapi/proxy/ppb_var_deprecated_proxy.cc index f1b7f8b..9571689 100644 --- a/ppapi/proxy/ppb_var_deprecated_proxy.cc +++ b/ppapi/proxy/ppb_var_deprecated_proxy.cc @@ -59,7 +59,7 @@ void ReleaseVar(PP_Var var) { } PP_Var VarFromUtf8(PP_Module module, const char* data, uint32_t len) { - PP_Var ret; + PP_Var ret = {}; ret.type = PP_VARTYPE_STRING; ret.value.as_id = PluginVarTracker::GetInstance()->MakeString( data, len); diff --git a/ppapi/proxy/serialized_structs.cc b/ppapi/proxy/serialized_structs.cc index 1e9ded0..142a926 100644 --- a/ppapi/proxy/serialized_structs.cc +++ b/ppapi/proxy/serialized_structs.cc @@ -1,4 +1,4 @@ -// Copyright (c) 2010 The Chromium Authors. All rights reserved. +// Copyright (c) 2011 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. @@ -71,6 +71,12 @@ PPBFlash_DrawGlyphs_Params::PPBFlash_DrawGlyphs_Params() : instance(0), font_desc(), color(0) { + clip.point.x = 0; + clip.point.y = 0; + clip.size.height = 0; + clip.size.width = 0; + position.x = 0; + position.y = 0; } PPBFlash_DrawGlyphs_Params::~PPBFlash_DrawGlyphs_Params() {} diff --git a/ppapi/proxy/serialized_var.cc b/ppapi/proxy/serialized_var.cc index 71c0eed..12df2cc 100644 --- a/ppapi/proxy/serialized_var.cc +++ b/ppapi/proxy/serialized_var.cc @@ -1,4 +1,4 @@ -// Copyright (c) 2010 The Chromium Authors. All rights reserved. +// Copyright (c) 2011 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. @@ -510,7 +510,7 @@ SerializedVarTestConstructor::SerializedVarTestConstructor( SerializedVarTestConstructor::SerializedVarTestConstructor( const std::string& str) { - PP_Var string_var; + PP_Var string_var = {}; string_var.type = PP_VARTYPE_STRING; string_var.value.as_id = 0; inner_->SetVar(string_var); |