options: Fix segfault on ingore_unknown
This commit is contained in:
parent
0be51b3671
commit
eadcebff7f
1 changed files with 1 additions and 1 deletions
|
|
@ -248,7 +248,7 @@ std::vector<std::string> ztd::option_set::process(std::vector<std::string> argum
|
|||
// add to ret if ignore
|
||||
ropt += *it;
|
||||
}
|
||||
if(popt->takesArgument) // needs arg
|
||||
else if(popt->takesArgument) // needs arg
|
||||
{
|
||||
i++;
|
||||
if((*it).size()<=i) // finishes here
|
||||
|
|
|
|||
Loading…
Reference in a new issue