mirror of
https://github.com/sheumann/hush.git
synced 2024-08-20 19:29:02 +00:00
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;
|
||||
|
||||
/* type -p ... ? (we don't bother checking for 'p') */
|
||||
if (argv[1][0] == '-') {
|
||||
if (argv[1] && argv[1][0] == '-') {
|
||||
i++;
|
||||
verbose = 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user