From: Vivek V Date: Fri, 25 Oct 2019 07:14:18 +0000 (+0000) Subject: debug/dwarf: call strings.EqualFold instead of calling Lower twice X-Git-Tag: go1.14beta1~563 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=3706cd85d37ec554821393eb49cb3c88edf9308a;p=gostls13.git debug/dwarf: call strings.EqualFold instead of calling Lower twice Change-Id: I8dcb425c37a067277549ba3bda6a21206459890a GitHub-Last-Rev: dc51b9b425ca51cd0a4ac494d4c7a3c0e2306951 GitHub-Pull-Request: golang/go#35132 Reviewed-on: https://go-review.googlesource.com/c/go/+/203097 Run-TryBot: Ian Lance Taylor TryBot-Result: Gobot Gobot Reviewed-by: Ian Lance Taylor --- diff --git a/src/debug/dwarf/line.go b/src/debug/dwarf/line.go index 1cd9dd98cf..7692f05552 100644 --- a/src/debug/dwarf/line.go +++ b/src/debug/dwarf/line.go @@ -806,7 +806,7 @@ func pathJoin(dirname, filename string) string { // DOS-style path. drive2, filename := splitDrive(filename) if drive2 != "" { - if strings.ToLower(drive) != strings.ToLower(drive2) { + if !strings.EqualFold(drive, drive2) { // Different drives. There's not much we can // do here, so just ignore the directory. return drive2 + filename