time: remove unnecessary trailing slash from "/etc/"

Fixes #36640

Change-Id: I2049b572347da1cb967f5a3f2bc342b310216435
Reviewed-on: https://go-review.googlesource.com/c/go/+/215519
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
Ian Lance Taylor 2020-01-20 12:05:08 -08:00
parent 5912f4fc37
commit f9c51e353f
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@ func initLocal() {
tz, ok := syscall.Getenv("TZ") tz, ok := syscall.Getenv("TZ")
switch { switch {
case !ok: case !ok:
z, err := loadLocation("localtime", []string{"/etc/"}) z, err := loadLocation("localtime", []string{"/etc"})
if err == nil { if err == nil {
localLoc = *z localLoc = *z
localLoc.name = "Local" localLoc.name = "Local"