Fix command line parsing crash.
git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@23005 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
parent
102a17402f
commit
d26b636085
@ -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()));
|
||||
|
Loading…
Reference in New Issue
Block a user