Skip to content

Commit

Permalink
initialize var to avoid undefined return val
Browse files Browse the repository at this point in the history
  • Loading branch information
jhump authored Sep 15, 2022
1 parent d6acffb commit 0362a12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/google/protobuf/io/tokenizer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 0362a12

Please sign in to comment.