mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-15 12:54:27 +00:00
Add missing check for xo_parse_args return code.
This commit is contained in:
parent
e1e2080fc1
commit
ef7d10fde4
|
@ -745,6 +745,9 @@ main(int argc, char **argv)
|
|||
struct target *targ;
|
||||
|
||||
argc = xo_parse_args(argc, argv);
|
||||
if (argc < 0)
|
||||
exit(1);
|
||||
|
||||
xo_open_container("iscsictl");
|
||||
|
||||
while ((ch = getopt(argc, argv, "AMRLac:d:e:i:n:p:rt:u:s:vw:")) != -1) {
|
||||
|
|
Loading…
Reference in a new issue