summaryrefslogtreecommitdiffstats
path: root/webkit/plugins/npapi/plugin_group.cc
diff options
context:
space:
mode:
authorbauerb@chromium.org <bauerb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-17 15:28:00 +0000
committerbauerb@chromium.org <bauerb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-17 15:28:00 +0000
commit4b4ac55fc2da8952c24784a004dfd46496f8ae80 (patch)
tree9aed1e8584b5ab2038fdba5f91a8742df568609a /webkit/plugins/npapi/plugin_group.cc
parent48a78ca2cd1ba1e78f819d9270b3043a73fcb180 (diff)
downloadchromium_src-4b4ac55fc2da8952c24784a004dfd46496f8ae80.zip
chromium_src-4b4ac55fc2da8952c24784a004dfd46496f8ae80.tar.gz
chromium_src-4b4ac55fc2da8952c24784a004dfd46496f8ae80.tar.bz2
Reset plugin group version to "0" instead of NULL.
This guards against dereferencing NULL when the group is empty. BUG=72946 TEST=PluginGroupTest.* Review URL: http://codereview.chromium.org/6532024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@75270 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/plugins/npapi/plugin_group.cc')
-rw-r--r--webkit/plugins/npapi/plugin_group.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/webkit/plugins/npapi/plugin_group.cc b/webkit/plugins/npapi/plugin_group.cc
index 1bf6284..22fd089 100644
--- a/webkit/plugins/npapi/plugin_group.cc
+++ b/webkit/plugins/npapi/plugin_group.cc
@@ -481,7 +481,7 @@ void PluginGroup::EnforceGroupPolicy() {
void PluginGroup::ResetGroupState() {
enabled_ = false;
description_.clear();
- version_.reset();
+ version_.reset(Version::GetVersionFromString("0"));
}
bool PluginGroup::Enable(WebPluginInfo* plugin,