Bug fix: Segfault when encountering invalid long option
I didn't read the documentation of getopt_long() carefully.
This commit is contained in:
parent
129115171a
commit
c905c882b4
|
@ -2594,6 +2594,8 @@ main(int argc, char **argv) {
|
|||
{ "shadow-green", required_argument, NULL, 0 },
|
||||
{ "shadow-blue", required_argument, NULL, 0 },
|
||||
{ "inactive-opacity-override", no_argument, NULL, 0 },
|
||||
// Must terminate with a NULL entry
|
||||
{ NULL, 0, NULL, 0 },
|
||||
};
|
||||
|
||||
XEvent ev;
|
||||
|
|
Loading…
Reference in New Issue