pki: Make sure options array passed to getopt_long() ends with a NULL entry

This commit is contained in:
Tobias Brunner
2026-05-19 17:27:33 +02:00
parent 4950a37e56
commit a1ad9e39fc
+1 -1
View File
@@ -57,7 +57,7 @@ static options_t *options;
/**
* Global options used by all subcommands
*/
static struct option command_opts[MAX_COMMANDS > MAX_OPTIONS ? MAX_COMMANDS : MAX_OPTIONS];
static struct option command_opts[(MAX_COMMANDS > MAX_OPTIONS ? MAX_COMMANDS : MAX_OPTIONS) + 1];
/**
* Global optstring used by all subcommands