From cf744bc02576cb862cc670241b4e26a379f1c9be Mon Sep 17 00:00:00 2001
From: Kirill A. Shutemov <kirill@shutemov.name>
Date: Tue, 4 Jan 2011 14:42:48 +0200
Subject: [PATCH] unshare: fix SIGSEGV on invalid command line option

$ unshare --hel
Segmentation fault

The last element of longopts has to be filled with zeros.

Signed-off-by: Kirill A. Shutemov <kirill@shutemov.name>
---
 sys-utils/unshare.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/sys-utils/unshare.c b/sys-utils/unshare.c
index 6b6177c..12a725e 100644
--- a/sys-utils/unshare.c
+++ b/sys-utils/unshare.c
@@ -76,6 +76,7 @@ int main(int argc, char *argv[])
 		{ "uts", no_argument, 0, 'u' },
 		{ "ipc", no_argument, 0, 'i' },
 		{ "net", no_argument, 0, 'n' },
+		{ NULL, 0, 0, 0 }
 	};
 
 	int unshare_flags = 0;
-- 
1.7.3.4