Accept no command line arguments without error.
This commit is contained in:
parent
dbc91b0811
commit
2420bed259
@ -307,6 +307,8 @@ void parse_cmdline(int argc, char *argv[])
|
|||||||
suicide("error parsing command line option: option too long");
|
suicide("error parsing command line option: option too long");
|
||||||
argbl += snl;
|
argbl += snl;
|
||||||
}
|
}
|
||||||
|
if (argbl == 0)
|
||||||
|
return;
|
||||||
struct cfgparse ccfg;
|
struct cfgparse ccfg;
|
||||||
memset(&ccfg, 0, sizeof ccfg);
|
memset(&ccfg, 0, sizeof ccfg);
|
||||||
const char *p = argb;
|
const char *p = argb;
|
||||||
|
Loading…
Reference in New Issue
Block a user