env: environ can never be NULL so don't check for it
This commit is contained in:
parent
75b848bb09
commit
1b32732887
3
env.c
3
env.c
|
@ -22,7 +22,6 @@ main(int argc, char *argv[])
|
||||||
|
|
||||||
ARGBEGIN {
|
ARGBEGIN {
|
||||||
case 'i':
|
case 'i':
|
||||||
if (environ)
|
|
||||||
*environ = NULL;
|
*environ = NULL;
|
||||||
break;
|
break;
|
||||||
case 'u':
|
case 'u':
|
||||||
|
@ -42,7 +41,7 @@ main(int argc, char *argv[])
|
||||||
_exit(126 + (savederrno == ENOENT));
|
_exit(126 + (savederrno == ENOENT));
|
||||||
}
|
}
|
||||||
|
|
||||||
for (; environ && *environ; environ++)
|
for (; *environ; environ++)
|
||||||
puts(*environ);
|
puts(*environ);
|
||||||
|
|
||||||
return fshut(stdout, "<stdout>");
|
return fshut(stdout, "<stdout>");
|
||||||
|
|
Loading…
Reference in New Issue
Block a user