Chromium Code Reviews| Index: src/flags.cc |
| diff --git a/src/flags.cc b/src/flags.cc |
| index 8ddd836817286a3eb9830ead0791e9f35a7d7c9d..98f21ef2c4c9e9ba4c7cf1adcec58593ef234709 100644 |
| --- a/src/flags.cc |
| +++ b/src/flags.cc |
| @@ -372,7 +372,8 @@ int FlagList::SetFlagsFromCommandLine(int* argc, |
| value == NULL) { |
| if (i < *argc) { |
| value = argv[i++]; |
| - } else { |
| + } |
| + if (!value) { |
| PrintF(stderr, "Error: missing value for flag %s of type %s\n" |
| "Try --help for options\n", |
| arg, Type2String(flag->type())); |