aboutsummaryrefslogtreecommitdiff
path: root/mt.c
diff options
context:
space:
mode:
authorandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>2000-09-05 18:21:53 +0000
committerandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>2000-09-05 18:21:53 +0000
commit01064c490c48d953d56748958101cc39aae69fff (patch)
tree787a2748d5c811d559e767a0858319bf8069a70d /mt.c
parent07b4c84c6b7b7c2f118a4f76abdccfd72dd0d21a (diff)
downloadbusybox-w32-01064c490c48d953d56748958101cc39aae69fff.tar.gz
busybox-w32-01064c490c48d953d56748958101cc39aae69fff.tar.bz2
busybox-w32-01064c490c48d953d56748958101cc39aae69fff.zip
Apply segfault on no-args fix from robotti@metconnect.com
git-svn-id: svn://busybox.net/trunk/busybox@1010 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'mt.c')
-rw-r--r--mt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mt.c b/mt.c
index 087819e72..e77f58a6a 100644
--- a/mt.c
+++ b/mt.c
@@ -55,7 +55,7 @@ extern int mt_main(int argc, char **argv)
55 struct mtop op; 55 struct mtop op;
56 int fd; 56 int fd;
57 57
58 if ((argc != 2 && argc != 3) && **(argv + 1) != '-') { 58 if (argc < 2) {
59 usage(mt_usage); 59 usage(mt_usage);
60 } 60 }
61 61