summaryrefslogtreecommitdiff
path: root/src/pkg/os/env.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/pkg/os/env.go')
-rw-r--r--src/pkg/os/env.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pkg/os/env.go b/src/pkg/os/env.go
index 071db0d1d..c1713586d 100644
--- a/src/pkg/os/env.go
+++ b/src/pkg/os/env.go
@@ -21,7 +21,7 @@ func copyenv() {
for _, s := range Envs {
for j := 0; j < len(s); j++ {
if s[j] == '=' {
- env[s[0:j]] = s[j+1 : len(s)];
+ env[s[0:j]] = s[j+1:];
break;
}
}