Fix segfault if running wayvncctl with no args
Signed-off-by: Jim Ramsay <i.am@jimramsay.com>pull/193/head
parent
7491a319d5
commit
349693ed87
|
@ -127,6 +127,8 @@ int main(int argc, char* argv[])
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
argc -= optind;
|
argc -= optind;
|
||||||
|
if (argc <= 0)
|
||||||
|
return wayvncctl_usage(stderr, 1);
|
||||||
argv = &argv[optind];
|
argv = &argv[optind];
|
||||||
|
|
||||||
ctl_client_debug_log(verbose);
|
ctl_client_debug_log(verbose);
|
||||||
|
|
Loading…
Reference in New Issue