From f743409653be6559a598975015ed462980dbe531 Mon Sep 17 00:00:00 2001 From: Marcel Date: Sun, 9 Mar 2014 16:46:26 +0000 Subject: [PATCH] fixed setted option even if the possible parameter was not correct. --- c/cmdlineoptions.c | 1 + 1 file changed, 1 insertion(+) diff --git a/c/cmdlineoptions.c b/c/cmdlineoptions.c index 6280b50..dd66cee 100644 --- a/c/cmdlineoptions.c +++ b/c/cmdlineoptions.c @@ -124,6 +124,7 @@ int CmdLO_Parse(int argc, char** argv) { } } if (cnode->option->possibleparametercount == j) { + cnode->option->set = 0; fprintf(stderr, "CmdLineOptions: Parameter '%s' is not allowed, parameter not added.\n", argv[i]);