Fixing SIGSEGV on empty parameters.

This commit is contained in:
Martin Dvorak 2014-01-17 04:20:09 +01:00
parent aa4872b314
commit 75879cf915

View file

@ -532,7 +532,7 @@ void assemble_cmdline(int argc, char *argv[]) {
int main(int argc, char *argv[])
{
if(argc>0) {
if(argc==1 && strstr(argv[1], "--show-configuration")) {
if(argc==2 && strstr(argv[1], "--show-configuration")) {
install_show();
} else {
assemble_cmdline(argc, argv);