1
0
mirror of git://git.suckless.org/sbase synced 2024-12-23 15:34:38 +00:00

env: environ can never be NULL so don't check for it

This commit is contained in:
sin 2015-11-06 10:48:52 +00:00
parent 75b848bb09
commit 1b32732887

3
env.c
View File

@ -22,7 +22,6 @@ main(int argc, char *argv[])
ARGBEGIN {
case 'i':
if (environ)
*environ = NULL;
break;
case 'u':
@ -42,7 +41,7 @@ main(int argc, char *argv[])
_exit(126 + (savederrno == ENOENT));
}
for (; environ && *environ; environ++)
for (; *environ; environ++)
puts(*environ);
return fshut(stdout, "<stdout>");