Set variables to avoid false-positive compiler warnings.

../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
This commit is contained in:
Adam Langley 2016-07-11 12:24:55 -07:00
parent 403c52aa94
commit 61367eedfe

View File

@ -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;
@ -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;