Add missing check for xo_parse_args return code.

This commit is contained in:
Phil Shafer 2023-01-30 15:43:01 -05:00
parent e1e2080fc1
commit ef7d10fde4

View file

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