mirror of
https://github.com/dvorka/hstr.git
synced 2024-11-15 04:21:43 +08:00
Fixing SIGSEGV on empty parameters.
This commit is contained in:
parent
aa4872b314
commit
75879cf915
1 changed files with 1 additions and 1 deletions
|
@ -532,7 +532,7 @@ void assemble_cmdline(int argc, char *argv[]) {
|
||||||
int main(int argc, char *argv[])
|
int main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
if(argc>0) {
|
if(argc>0) {
|
||||||
if(argc==1 && strstr(argv[1], "--show-configuration")) {
|
if(argc==2 && strstr(argv[1], "--show-configuration")) {
|
||||||
install_show();
|
install_show();
|
||||||
} else {
|
} else {
|
||||||
assemble_cmdline(argc, argv);
|
assemble_cmdline(argc, argv);
|
||||||
|
|
Loading…
Reference in a new issue