Bug fix: Segfault when encountering invalid long option

I didn't read the documentation of getopt_long() carefully.
This commit is contained in:
Richard Grenville 2012-09-11 23:11:23 +08:00
parent 129115171a
commit c905c882b4
1 changed files with 2 additions and 0 deletions

View File

@ -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;