diff options
author | thakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-05-25 19:02:29 +0000 |
---|---|---|
committer | thakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-05-25 19:02:29 +0000 |
commit | 8d2ff8b78fda085eca7945e9e7bbea8d997a1dfc (patch) | |
tree | 11c1de91d81e876b0aa38057dc2793abf9a0f2c7 /chrome_frame/chrome_frame_npapi.cc | |
parent | 44f854c6501e4c9a410c98b502fe958feca78092 (diff) | |
download | chromium_src-8d2ff8b78fda085eca7945e9e7bbea8d997a1dfc.zip chromium_src-8d2ff8b78fda085eca7945e9e7bbea8d997a1dfc.tar.gz chromium_src-8d2ff8b78fda085eca7945e9e7bbea8d997a1dfc.tar.bz2 |
Chrome Frame: Fix bogus null check found by PVS Studio.
BUG=83904
TEST=none
Review URL: http://codereview.chromium.org/7069016
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@86663 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome_frame/chrome_frame_npapi.cc')
-rw-r--r-- | chrome_frame/chrome_frame_npapi.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome_frame/chrome_frame_npapi.cc b/chrome_frame/chrome_frame_npapi.cc index 84e2bc7..0baab27 100644 --- a/chrome_frame/chrome_frame_npapi.cc +++ b/chrome_frame/chrome_frame_npapi.cc @@ -399,7 +399,7 @@ bool ChromeFrameNPAPI::Invoke(NPObject* header, NPIdentifier name, const NPVariant* args, uint32_t arg_count, NPVariant* result) { ChromeFrameNPAPI* plugin_instance = ChromeFrameInstanceFromNPObject(header); - if (!plugin_instance && (plugin_instance->automation_client_.get())) + if (!plugin_instance || !plugin_instance->automation_client_.get()) return false; bool success = false; |