From eadcebff7f95b24bae5b93eae0ac4acdd0d855ff Mon Sep 17 00:00:00 2001 From: zawz Date: Mon, 3 Feb 2020 14:16:38 +0100 Subject: [PATCH] options: Fix segfault on ingore_unknown --- src/options.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/options.cpp b/src/options.cpp index 55c704d..92f3f04 100644 --- a/src/options.cpp +++ b/src/options.cpp @@ -248,7 +248,7 @@ std::vector ztd::option_set::process(std::vector 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