diff options
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 | } |