From ba6f3b833b5a8c441bb961da3d9456b939ca6c78 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Tue, 25 Mar 2014 08:21:16 +0000 Subject: [PATCH] fix segfault in parameter parser --- src/parameters_parser.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/parameters_parser.cc b/src/parameters_parser.cc index 68e15791..c6366a3c 100644 --- a/src/parameters_parser.cc +++ b/src/parameters_parser.cc @@ -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