uuidparse: fix getopt crash

$ ./uuidparse --unknownopt
Segmentation fault (core dumped)

Hehe, this is the first real bug found by 'make checkusage'.

Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
This commit is contained in:
Ruediger Meier 2017-06-26 18:20:06 +02:00 committed by Karel Zak
parent 47ccf06b47
commit f2bd688157
1 changed files with 1 additions and 0 deletions

View File

@ -299,6 +299,7 @@ int main(int argc, char **argv)
{"raw", no_argument, NULL, 'r'},
{"version", no_argument, NULL, 'V'},
{"help", no_argument, NULL, 'h'},
{NULL, 0, NULL, 0}
};
static const ul_excl_t excl[] = {
{'J', 'r'},