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:
parent
74fb0ba732
commit
75cf69394b
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user