summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pkg_install
diff options
context:
space:
mode:
authorjilles <jilles@FreeBSD.org>2009-06-01 21:26:52 +0000
committerjilles <jilles@FreeBSD.org>2009-06-01 21:26:52 +0000
commite7035c4cf492567e058158332850658be9cccdcb (patch)
treee67d45d8202fafc083d480e2b4f9e6d2b8ffd0b6 /usr.sbin/pkg_install
parenta1af9ecca44f362b24fe3a8342ca6ed8676a399c (diff)
downloadFreeBSD-src-e7035c4cf492567e058158332850658be9cccdcb.zip
FreeBSD-src-e7035c4cf492567e058158332850658be9cccdcb.tar.gz
Fix segfault when giving invalid long option to pkg_info.
PR: bin/133473 Submitted by: Rafal Grodzinski Approved by: ed (mentor) MFC after: 1 week
Diffstat (limited to 'usr.sbin/pkg_install')
-rw-r--r--usr.sbin/pkg_install/info/main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/usr.sbin/pkg_install/info/main.c b/usr.sbin/pkg_install/info/main.c
index aaa2a1b..08ab23b 100644
--- a/usr.sbin/pkg_install/info/main.c
+++ b/usr.sbin/pkg_install/info/main.c
@@ -58,6 +58,7 @@ static struct option longopts[] = {
{ "verbose", no_argument, NULL, 'v' },
{ "version", no_argument, NULL, 'P' },
{ "which", required_argument, NULL, 'W' },
+ { NULL, 0, NULL, 0 }
};
int
OpenPOWER on IntegriCloud