]> Cypherpunks repositories - gostls13.git/commitdiff
debug/dwarf: call strings.EqualFold instead of calling Lower twice
authorVivek V <iamvivekv96@gmail.com>
Fri, 25 Oct 2019 07:14:18 +0000 (07:14 +0000)
committerIan Lance Taylor <iant@golang.org>
Sat, 26 Oct 2019 02:36:26 +0000 (02:36 +0000)
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 <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/debug/dwarf/line.go

index 1cd9dd98cf7caa6e8dd3bc683856aaf2e0ac4dff..7692f055521a11f8ac0e38f977d2b07bb352bf19 100644 (file)
@@ -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