Fix possible segfault when parsing options
This commit is contained in:
@@ -478,7 +478,7 @@ main(int argc, char **argv)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case 'c':
|
case 'c':
|
||||||
exec_uicb_function(argv[2], ((argv[3]) ? argv[3] : NULL));
|
exec_uicb_function(optarg, argv[optind]);
|
||||||
XCloseDisplay(dpy);
|
XCloseDisplay(dpy);
|
||||||
exit(EXIT_SUCCESS);
|
exit(EXIT_SUCCESS);
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user