diff options
Diffstat (limited to 'bin/sh/var.c')
-rw-r--r-- | bin/sh/var.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/sh/var.c b/bin/sh/var.c index 099d4c5..297b82b 100644 --- a/bin/sh/var.c +++ b/bin/sh/var.c @@ -295,6 +295,7 @@ void setvareq(char *s, int flags) { struct var *vp, **vpp; + int len; if (aflag) flags |= VEXPORT; @@ -302,7 +303,7 @@ setvareq(char *s, int flags) for (vp = *vpp ; vp ; vp = vp->next) { if (varequal(s, vp->text)) { if (vp->flags & VREADONLY) { - size_t len = strchr(s, '=') - s; + len = strchr(s, '=') - s; error("%.*s: is read only", len, s); } INTOFF; |