From: Ruediger Meier Date: Mon, 26 Jun 2017 16:20:06 +0000 (+0200) Subject: uuidparse: fix getopt crash X-Git-Tag: v2.31-rc1~260 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f2bd68815769b50c6e91127099611b091705ada6;p=thirdparty%2Futil-linux.git 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 --- diff --git a/misc-utils/uuidparse.c b/misc-utils/uuidparse.c index 0938b85592..09a6b46a8d 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'},