summaryrefslogtreecommitdiffstats
path: root/misc-utils
diff options
context:
space:
mode:
authorRuediger Meier2017-06-26 18:20:06 +0200
committerKarel Zak2017-06-26 22:38:43 +0200
commitf2bd68815769b50c6e91127099611b091705ada6 (patch)
treee536ac8ecfa28b38668de7e02fda534a75c53536 /misc-utils
parentMerge branch 'usage-part2' of https://github.com/rudimeier/util-linux (diff)
downloadkernel-qcow2-util-linux-f2bd68815769b50c6e91127099611b091705ada6.tar.gz
kernel-qcow2-util-linux-f2bd68815769b50c6e91127099611b091705ada6.tar.xz
kernel-qcow2-util-linux-f2bd68815769b50c6e91127099611b091705ada6.zip
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>
Diffstat (limited to 'misc-utils')
-rw-r--r--misc-utils/uuidparse.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/misc-utils/uuidparse.c b/misc-utils/uuidparse.c
index 0938b8559..09a6b46a8 100644
--- a/misc-utils/uuidparse.c
+++ b/misc-utils/uuidparse.c
@@ -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'},