fix segfault in parameter parser
This commit is contained in:
parent
bbdb2494d1
commit
ba6f3b833b
|
@ -31,7 +31,7 @@ ParametersParser::ParametersParser(ParameterList params,
|
||||||
{
|
{
|
||||||
++i;
|
++i;
|
||||||
if (i == params.size() or params[i][0] == '-')
|
if (i == params.size() or params[i][0] == '-')
|
||||||
throw missing_option_value(params[i]);
|
throw missing_option_value(it->first);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue
Block a user