diff --git a/src/google/protobuf/io/tokenizer.cc b/src/google/protobuf/io/tokenizer.cc index d14c5a19268d..d7f100dbbd71 100644 --- a/src/google/protobuf/io/tokenizer.cc +++ b/src/google/protobuf/io/tokenizer.cc @@ -1002,7 +1002,7 @@ bool Tokenizer::ParseInteger(const std::string& text, uint64_t max_value, } double Tokenizer::ParseFloat(const std::string& text) { - double result; + double result = 0; if (!TryParseFloat(text, &result)) { LOG(DFATAL) << " Tokenizer::ParseFloat() passed text that could not have been"