diff options
author | Ruediger Meier | 2017-06-26 18:20:06 +0200 |
---|---|---|
committer | Karel Zak | 2017-06-26 22:38:43 +0200 |
commit | f2bd68815769b50c6e91127099611b091705ada6 (patch) | |
tree | e536ac8ecfa28b38668de7e02fda534a75c53536 /misc-utils | |
parent | Merge branch 'usage-part2' of https://github.com/rudimeier/util-linux (diff) | |
download | kernel-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.c | 1 |
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'}, |