Commit 5c66bce2 authored by ddorwin@chromium.org's avatar ddorwin@chromium.org

Fix uninitialized variables introduced in CL 72374.

time_slice_hrs is being used uninitialized at line 459, and this was causing a Run-Time Check failure and crash in Debug versions on Windows.

I don't know whether 0 is the the correct value in this case, but this fixes the crash. mirandac@ will need to review the behavior.

BUG=None
TEST=Run debug version of Chrome on Windows and wait a few seconds.
Review URL: http://codereview.chromium.org/6385004

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@72444 0039d316-1c4b-4281-b951-d872f2087c98
parent 82c44c43
...@@ -399,8 +399,8 @@ void WebResourceService::UnpackPromoSignal(const DictionaryValue& parsed_json) { ...@@ -399,8 +399,8 @@ void WebResourceService::UnpackPromoSignal(const DictionaryValue& parsed_json) {
std::string promo_end_string = ""; std::string promo_end_string = "";
std::string promo_string = ""; std::string promo_string = "";
std::string promo_build = ""; std::string promo_build = "";
int promo_build_type; int promo_build_type = 0;
int time_slice_hrs; int time_slice_hrs = 0;
for (ListValue::const_iterator tip_iter = answer_list->begin(); for (ListValue::const_iterator tip_iter = answer_list->begin();
tip_iter != answer_list->end(); ++tip_iter) { tip_iter != answer_list->end(); ++tip_iter) {
if (!(*tip_iter)->IsType(Value::TYPE_DICTIONARY)) if (!(*tip_iter)->IsType(Value::TYPE_DICTIONARY))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment