Fixed SIGSEGV from having no arguments
This commit is contained in:
parent
2957b2d5ee
commit
8aaaff4e27
3
euhelp.c
3
euhelp.c
@ -9,7 +9,8 @@ char command[1024];
|
||||
//xdg-open was pissed about escaped quotes so I had to go with %22
|
||||
//added %5c in order to open first search result
|
||||
strcpy(command,"xdg-open https://duckduckgo.com/?q=\%5Csite\%3Ahttp\%3A\%2F\%2Fopeneuphoria.org\%2Fdocs\%2F+\%22");
|
||||
if (argc >=1){
|
||||
|
||||
if (argc >1){
|
||||
strcat(command, argv[1]);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user