summaryrefslogtreecommitdiffstats
path: root/bin/sh/var.c
diff options
context:
space:
mode:
Diffstat (limited to 'bin/sh/var.c')
-rw-r--r--bin/sh/var.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/bin/sh/var.c b/bin/sh/var.c
index a4241af..b3be70a 100644
--- a/bin/sh/var.c
+++ b/bin/sh/var.c
@@ -543,6 +543,7 @@ exportcmd(int argc, char **argv)
cmdname = argv[0];
optreset = optind = 1;
+ opterr = 0;
values = 0;
while ((ch = getopt(argc, argv, "p")) != -1) {
switch (ch) {
OpenPOWER on IntegriCloud