diff --git a/VERSION b/VERSION index b0e9657b..d905db71 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -a12-197-g51ca08719e+1 \ No newline at end of file +a12-198-g0605b7df8c+1 \ No newline at end of file diff --git a/common/src/option.c b/common/src/option.c index fe344ff0..c1a096f3 100644 --- a/common/src/option.c +++ b/common/src/option.c @@ -297,6 +297,13 @@ bool option_parse(int argc, char * argv[]) free(arg); } + if (!o) + { + DEBUG_WARN("Ignored unknown argument: %s", argv[a]); + free(value); + continue; + } + if (!value) { if (o->type == OPTION_TYPE_BOOL) @@ -311,13 +318,6 @@ bool option_parse(int argc, char * argv[]) } } - if (!o) - { - DEBUG_WARN("Ignored unknown argument: %s", argv[a]); - free(value); - continue; - } - option_set(o, value); free(value); }