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
This commit is contained in:
Jilles Tjoelker 2009-06-01 21:26:52 +00:00
parent 74fb0ba732
commit 75cf69394b

View File

@ -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