Apply segfault on no-args fix from robotti@metconnect.com

This commit is contained in:
Eric Andersen 2000-09-05 18:21:53 +00:00
parent 3639c5d950
commit 1eec89df4c
2 changed files with 2 additions and 2 deletions

View File

@ -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);
}

2
mt.c
View File

@ -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);
}