summaryrefslogtreecommitdiffstats
path: root/bin/sh/expand.c
diff options
context:
space:
mode:
authorjilles <jilles@FreeBSD.org>2016-01-07 23:13:20 +0000
committerjilles <jilles@FreeBSD.org>2016-01-07 23:13:20 +0000
commitacacb5074b2237806e9955d5aeafb3cbac26a80d (patch)
treec20ea8b5ec4098e9f3256f758d8c0867eb765b7f /bin/sh/expand.c
parent66aa33e3b54566ac437dc5e07c902034dd158713 (diff)
downloadFreeBSD-src-acacb5074b2237806e9955d5aeafb3cbac26a80d.zip
FreeBSD-src-acacb5074b2237806e9955d5aeafb3cbac26a80d.tar.gz
sh: Reduce size of options table.
Diffstat (limited to 'bin/sh/expand.c')
-rw-r--r--bin/sh/expand.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/sh/expand.c b/bin/sh/expand.c
index 59ba549..c661541 100644
--- a/bin/sh/expand.c
+++ b/bin/sh/expand.c
@@ -951,8 +951,8 @@ varvalue(const char *name, int quoted, int subtype, int flag,
case '-':
p = buf;
for (i = 0 ; i < NSHORTOPTS ; i++) {
- if (optlist[i].val)
- *p++ = optlist[i].letter;
+ if (optval[i])
+ *p++ = optletter[i];
}
*p = '\0';
strtodest(buf, flag, subtype, quoted, dst);
OpenPOWER on IntegriCloud