Apply segfault on no-args fix from robotti@metconnect.com
This commit is contained in:
parent
3639c5d950
commit
1eec89df4c
@ -55,7 +55,7 @@ extern int mt_main(int argc, char **argv)
|
||||
struct mtop op;
|
||||
int fd;
|
||||
|
||||
if ((argc != 2 && argc != 3) && **(argv + 1) != '-') {
|
||||
if (argc < 2) {
|
||||
usage(mt_usage);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user