| Index: content/browser/geolocation/network_location_request.cc
|
| diff --git a/content/browser/geolocation/network_location_request.cc b/content/browser/geolocation/network_location_request.cc
|
| index 8fb6e6a907621b9382f7828b031a9886ed6fdb40..75c7c8434f4d281112cff9d9bf4804ff0f2d5436 100644
|
| --- a/content/browser/geolocation/network_location_request.cc
|
| +++ b/content/browser/geolocation/network_location_request.cc
|
| @@ -409,7 +409,8 @@ bool ParseServerResponse(const std::string& response_body,
|
| static_cast<const base::DictionaryValue*>(location_value);
|
|
|
| // latitude and longitude fields are always required.
|
| - double latitude, longitude;
|
| + double latitude = 0;
|
| + double longitude = 0;
|
| if (!GetAsDouble(*location_object, kLatitudeString, &latitude) ||
|
| !GetAsDouble(*location_object, kLongitudeString, &longitude)) {
|
| VLOG(1) << "ParseServerResponse() : location lacks lat and/or long.";
|
|
|