devfsd: fix formatting (Tito <farmatito@tiscali.it>)
ash: fix SEGV if type has zero parameters
This commit is contained in:
parent
80b8b39899
commit
1fc6238ffa
File diff suppressed because it is too large
Load Diff
@ -6986,7 +6986,7 @@ typecmd(int argc, char **argv)
|
|||||||
int verbose = 1;
|
int verbose = 1;
|
||||||
|
|
||||||
/* type -p ... ? (we don't bother checking for 'p') */
|
/* type -p ... ? (we don't bother checking for 'p') */
|
||||||
if (argv[1][0] == '-') {
|
if (argv[1] && argv[1][0] == '-') {
|
||||||
i++;
|
i++;
|
||||||
verbose = 0;
|
verbose = 0;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user