From 1fc6238ffab2cbd09b9ce573b99d82f3eaeb5b77 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Mon, 25 Jun 2007 22:55:34 +0000 Subject: devfsd: fix formatting (Tito ) ash: fix SEGV if type has zero parameters --- shell/ash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'shell/ash.c') 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) int verbose = 1; /* type -p ... ? (we don't bother checking for 'p') */ - if (argv[1][0] == '-') { + if (argv[1] && argv[1][0] == '-') { i++; verbose = 0; } -- cgit v1.2.3