summaryrefslogtreecommitdiffstats
path: root/usr.bin/env/env.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/env/env.c')
-rw-r--r--usr.bin/env/env.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/env/env.c b/usr.bin/env/env.c
index 2c72ddb..0e01acf 100644
--- a/usr.bin/env/env.c
+++ b/usr.bin/env/env.c
@@ -58,7 +58,7 @@ main(argc, argv)
char *cleanenv[1];
int ch;
- while ((ch = getopt(argc, argv, "-")) != EOF)
+ while ((ch = getopt(argc, argv, "-")) != -1)
switch(ch) {
case '-':
environ = cleanenv;
OpenPOWER on IntegriCloud