devfsd: fix formatting (Tito <farmatito@tiscali.it>)

ash: fix SEGV if type has zero parameters
This commit is contained in:
Denis Vlasenko 2007-06-25 22:55:34 +00:00
parent 80b8b39899
commit 1fc6238ffa
2 changed files with 447 additions and 510 deletions

File diff suppressed because it is too large Load Diff

View File

@ -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;
}