From 75879cf915979db815e28a68bb6c710191d98030 Mon Sep 17 00:00:00 2001 From: Martin Dvorak Date: Fri, 17 Jan 2014 04:20:09 +0100 Subject: [PATCH] Fixing SIGSEGV on empty parameters. --- src/hstr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hstr.c b/src/hstr.c index 14ba0d6..470c36e 100644 --- a/src/hstr.c +++ b/src/hstr.c @@ -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);