diff --git a/common/src/option.c b/common/src/option.c index 1876a6af..f7b2dc8c 100644 --- a/common/src/option.c +++ b/common/src/option.c @@ -272,6 +272,9 @@ static bool option_set(struct Option * opt, const char * value) bool option_parse(int argc, char * argv[]) { + if (argc < 1) + return true; + for(int a = 1; a < argc; ++a) { struct Option * o = NULL;