mirror of
https://github.com/FeralInteractive/gamemode.git
synced 2025-06-06 23:57:22 +02:00
Add a zeroed final option for getopt_long for correctness
This commit is contained in:
parent
0d018d91a8
commit
41d35fa12a
@ -114,7 +114,8 @@ int main(int argc, char *argv[])
|
|||||||
{ "test", no_argument, 0, 't' },
|
{ "test", no_argument, 0, 't' },
|
||||||
{ "status", optional_argument, 0, 's' },
|
{ "status", optional_argument, 0, 's' },
|
||||||
{ "help", no_argument, 0, 'h' },
|
{ "help", no_argument, 0, 'h' },
|
||||||
{ "version", no_argument, 0, 'v' } };
|
{ "version", no_argument, 0, 'v' },
|
||||||
|
{ NULL, 0, NULL, 0 }, };
|
||||||
static const char *short_options = "dls::r::tvh";
|
static const char *short_options = "dls::r::tvh";
|
||||||
|
|
||||||
while ((opt = getopt_long(argc, argv, short_options, long_options, 0)) != -1) {
|
while ((opt = getopt_long(argc, argv, short_options, long_options, 0)) != -1) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user