From: Rusty Russell "struct option" arrays handed to getopt_long() are supposed to be NULL-terminated. (Another patch added an arg and it finally segv'd). Signed-off-by: Rusty Russell Signed-off-by: Andrew Morton --- Documentation/lguest/lguest.c | 1 + 1 files changed, 1 insertion(+) diff -puN Documentation/lguest/lguest.c~lguest-the-documentation-example-launcher-example-launcher-fix Documentation/lguest/lguest.c --- a/Documentation/lguest/lguest.c~lguest-the-documentation-example-launcher-example-launcher-fix +++ a/Documentation/lguest/lguest.c @@ -930,6 +930,7 @@ static struct option opts[] = { { "tunnet", 1, NULL, 't' }, { "block", 1, NULL, 'b' }, { "initrd", 1, NULL, 'i' }, + { NULL }, }; static void usage(void) { _