fix segfault in parameter parser

This commit is contained in:
Maxime Coste 2014-03-25 08:21:16 +00:00
parent bbdb2494d1
commit ba6f3b833b

View File

@ -31,7 +31,7 @@ ParametersParser::ParametersParser(ParameterList params,
{
++i;
if (i == params.size() or params[i][0] == '-')
throw missing_option_value(params[i]);
throw missing_option_value(it->first);
}
}
else