Browse Source

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
kris/onging/CECPQ3_patch15
Adam Langley 8 years ago
parent
commit
61367eedfe
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      tool/transport_common.cc

+ 2
- 2
tool/transport_common.cc 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;


Loading…
Cancel
Save