| Index: net/tools/quic/quic_client_bin.cc
|
| diff --git a/net/tools/quic/quic_client_bin.cc b/net/tools/quic/quic_client_bin.cc
|
| index 66517ca9c197e33cfc3e201778eb41ab1210430f..259111f8782dd6e2e94c74c3c35d5238c24fe0cb 100644
|
| --- a/net/tools/quic/quic_client_bin.cc
|
| +++ b/net/tools/quic/quic_client_bin.cc
|
| @@ -125,10 +125,7 @@ int main(int argc, char *argv[]) {
|
| FLAGS_host = line->GetSwitchValueASCII("host");
|
| }
|
| if (line->HasSwitch("port")) {
|
| - int port;
|
| - if (base::StringToInt(line->GetSwitchValueASCII("port"), &port)) {
|
| - FLAGS_port = port;
|
| - } else {
|
| + if (!base::StringToInt(line->GetSwitchValueASCII("port"), &FLAGS_port)) {
|
| std::cerr << "--port must be an integer\n";
|
| return 1;
|
| }
|
|
|