| Index: net/quic/quic_server_bin.cc
|
| diff --git a/net/quic/quic_server_bin.cc b/net/quic/quic_server_bin.cc
|
| index e7c2a6ca04afdd6d4e13a3ec98b5369b43c9338b..53ec9bb064697501b22a21d14fc9db74c99c2d60 100644
|
| --- a/net/quic/quic_server_bin.cc
|
| +++ b/net/quic/quic_server_bin.cc
|
| @@ -48,10 +48,7 @@ int main(int argc, char *argv[]) {
|
| }
|
|
|
| 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)) {
|
| LOG(ERROR) << "--port must be an integer\n";
|
| return 1;
|
| }
|
|
|