diff options
author | groby@chromium.org <groby@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-12-22 19:05:57 +0000 |
---|---|---|
committer | groby@chromium.org <groby@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-12-22 19:05:57 +0000 |
commit | d88a73ccf8313c4ced46cdfeff01f1e7aa60300e (patch) | |
tree | 83c4b16c17b41c42ef00d9fe68bf4ccc5661f958 /ppapi/proxy | |
parent | bf88c0386e841f70d612d83a597ac7715de91cce (diff) | |
download | chromium_src-d88a73ccf8313c4ced46cdfeff01f1e7aa60300e.zip chromium_src-d88a73ccf8313c4ced46cdfeff01f1e7aa60300e.tar.gz chromium_src-d88a73ccf8313c4ced46cdfeff01f1e7aa60300e.tar.bz2 |
Fixed coverity uninit bugs
TBR=piman@chromium.org
CID = 102016, 101331, 102465, 100905
TEST=
Review URL: http://codereview.chromium.org/9005024
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@115571 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/proxy')
-rw-r--r-- | ppapi/proxy/plugin_var_tracker.cc | 3 | ||||
-rw-r--r-- | ppapi/proxy/ppb_var_deprecated_proxy.cc | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/ppapi/proxy/plugin_var_tracker.cc b/ppapi/proxy/plugin_var_tracker.cc index a5f499a..b1bd8a4 100644 --- a/ppapi/proxy/plugin_var_tracker.cc +++ b/ppapi/proxy/plugin_var_tracker.cc @@ -106,8 +106,7 @@ PP_Var PluginVarTracker::GetHostObject(const PP_Var& plugin_object) const { } // Make a var with the host ID. - PP_Var ret; - ret.type = PP_VARTYPE_OBJECT; + PP_Var ret = { PP_VARTYPE_OBJECT }; ret.value.as_id = object->host_var_id(); return ret; } diff --git a/ppapi/proxy/ppb_var_deprecated_proxy.cc b/ppapi/proxy/ppb_var_deprecated_proxy.cc index 7cf4790..6d6d1ac 100644 --- a/ppapi/proxy/ppb_var_deprecated_proxy.cc +++ b/ppapi/proxy/ppb_var_deprecated_proxy.cc @@ -343,8 +343,7 @@ bool PPB_Var_Deprecated_Proxy::OnMessageReceived(const IPC::Message& msg) { void PPB_Var_Deprecated_Proxy::OnMsgAddRefObject(int64 object_id, int* /* unused */) { - PP_Var var; - var.type = PP_VARTYPE_OBJECT; + PP_Var var = { PP_VARTYPE_OBJECT }; var.value.as_id = object_id; ppb_var_impl_->AddRef(var); } |