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

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

No files matched your search

+1 -1
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);
}
+1 -1
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);
}