diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-06-25 22:55:34 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-06-25 22:55:34 +0000 |
commit | 1fc6238ffab2cbd09b9ce573b99d82f3eaeb5b77 (patch) | |
tree | fc7c75badddb78021ae50a64914a27f6b32d0d4f /shell | |
parent | 80b8b39899a09c7516920cda5fd343b3086d4824 (diff) | |
download | busybox-w32-1fc6238ffab2cbd09b9ce573b99d82f3eaeb5b77.tar.gz busybox-w32-1fc6238ffab2cbd09b9ce573b99d82f3eaeb5b77.tar.bz2 busybox-w32-1fc6238ffab2cbd09b9ce573b99d82f3eaeb5b77.zip |
devfsd: fix formatting (Tito <farmatito@tiscali.it>)
ash: fix SEGV if type has zero parameters
Diffstat (limited to 'shell')
-rw-r--r-- | shell/ash.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/shell/ash.c b/shell/ash.c index d9fe64121..f33ff4d8e 100644 --- a/shell/ash.c +++ b/shell/ash.c | |||
@@ -6986,7 +6986,7 @@ typecmd(int argc, char **argv) | |||
6986 | int verbose = 1; | 6986 | int verbose = 1; |
6987 | 6987 | ||
6988 | /* type -p ... ? (we don't bother checking for 'p') */ | 6988 | /* type -p ... ? (we don't bother checking for 'p') */ |
6989 | if (argv[1][0] == '-') { | 6989 | if (argv[1] && argv[1][0] == '-') { |
6990 | i++; | 6990 | i++; |
6991 | verbose = 0; | 6991 | verbose = 0; |
6992 | } | 6992 | } |