From 37f46b46aea606bd1cfe6d7808c8cfcf42410fee Mon Sep 17 00:00:00 2001 From: "pkasting@chromium.org" Date: Wed, 25 Nov 2009 21:02:24 +0000 Subject: Try to fix spurious gcc warning. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@33112 0039d316-1c4b-4281-b951-d872f2087c98 --- base/values.cc | 4 ++-- 1 file 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; -- cgit v1.1