diff options
author | jilles <jilles@FreeBSD.org> | 2009-06-01 21:26:52 +0000 |
---|---|---|
committer | jilles <jilles@FreeBSD.org> | 2009-06-01 21:26:52 +0000 |
commit | e7035c4cf492567e058158332850658be9cccdcb (patch) | |
tree | e67d45d8202fafc083d480e2b4f9e6d2b8ffd0b6 /usr.sbin | |
parent | a1af9ecca44f362b24fe3a8342ca6ed8676a399c (diff) | |
download | FreeBSD-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')
-rw-r--r-- | usr.sbin/pkg_install/info/main.c | 1 |
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 |