Accept no command line arguments without error.

This commit is contained in:
Nicholas J. Kain 2014-04-21 12:04:13 -04:00
parent dbc91b0811
commit 2420bed259

View File

@ -307,6 +307,8 @@ void parse_cmdline(int argc, char *argv[])
suicide("error parsing command line option: option too long");
argbl += snl;
}
if (argbl == 0)
return;
struct cfgparse ccfg;
memset(&ccfg, 0, sizeof ccfg);
const char *p = argb;