summaryrefslogtreecommitdiffstats
path: root/base
diff options
context:
space:
mode:
authorpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-25 21:02:24 +0000
committerpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-25 21:02:24 +0000
commit37f46b46aea606bd1cfe6d7808c8cfcf42410fee (patch)
treec04e7e3e9658e2e4be8b7622f906258c8b80aabe /base
parent4dad9ad838f6671fbd67e1c5292525e739e31983 (diff)
downloadchromium_src-37f46b46aea606bd1cfe6d7808c8cfcf42410fee.zip
chromium_src-37f46b46aea606bd1cfe6d7808c8cfcf42410fee.tar.gz
chromium_src-37f46b46aea606bd1cfe6d7808c8cfcf42410fee.tar.bz2
Try to fix spurious gcc warning.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@33112 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base')
-rw-r--r--base/values.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/base/values.cc b/base/values.cc
index f66b5968..8404d3ef 100644
--- a/base/values.cc
+++ b/base/values.cc
@@ -263,7 +263,7 @@ void DictionaryValue::Set(const std::wstring& path, Value* in_value) {
delimiter_position = current_path.find('.')) {
// Assume that we're indexing into a dictionary.
std::wstring key(current_path, 0, delimiter_position);
- DictionaryValue* child_dictionary;
+ DictionaryValue* child_dictionary = NULL;
if (!current_dictionary->GetDictionary(key, &child_dictionary)) {
child_dictionary = new DictionaryValue;
current_dictionary->SetWithoutPathExpansion(key, child_dictionary);
@@ -316,7 +316,7 @@ bool DictionaryValue::Get(const std::wstring& path, Value** out_value) const {
for (size_t delimiter_position = current_path.find('.');
delimiter_position != std::wstring::npos;
delimiter_position = current_path.find('.')) {
- DictionaryValue* child_dictionary;
+ DictionaryValue* child_dictionary = NULL;
if (!current_dictionary->GetDictionary(
current_path.substr(0, delimiter_position), &child_dictionary))
return false;