Skip to content

Commit

Permalink
Set variables to avoid false-positive compiler warnings.
Browse files Browse the repository at this point in the history
../tool/transport_common.cc:429:14: error: ‘code_250’ may be used uninitialized in this function [-Werror=maybe-uninitialized]

(I don't believe it can actually happen though.)

Change-Id: I78d19ad42ed4c05404f1d8d3e8f254ede3244b8d
  • Loading branch information
agl committed Jul 11, 2016
1 parent 403c52a commit 61367ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tool/transport_common.cc
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ static bool SendAll(int sock, const char *data, size_t data_len) {
bool DoSMTPStartTLS(int sock) {
SocketLineReader line_reader(sock);

unsigned code_220;
unsigned code_220 = 0;
std::string reply_220;
if (!line_reader.ReadSMTPReply(&code_220, &reply_220)) {
return false;
Expand All @@ -500,7 +500,7 @@ bool DoSMTPStartTLS(int sock) {
return false;
}

unsigned code_250;
unsigned code_250 = 0;
std::string reply_250;
if (!line_reader.ReadSMTPReply(&code_250, &reply_250)) {
return false;
Expand Down

0 comments on commit 61367ee

Please sign in to comment.