fix segfault if user only specifies 1 file
This commit is contained in:
parent
4d149205c3
commit
3ba93c0438
@ -142,7 +142,7 @@ int comm_main (int argc, char **argv)
|
||||
|
||||
opt = bb_getopt_ulflags(argc, argv, "123");
|
||||
|
||||
if ((opt & 0x80000000UL) || (optind == argc))
|
||||
if (optind != argc + 2)
|
||||
bb_show_usage();
|
||||
|
||||
if (opt & COMM_OPT_1)
|
||||
|
Loading…
Reference in New Issue
Block a user