Skip to content

Commit be41db8

Browse files
n
Change-Id: Ia532697ea429907567ab156f6f50059a15e90fbb
1 parent e1489ac commit be41db8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/os/exec/exec.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -644,7 +644,7 @@ func (c *Cmd) Start() error {
644644
}
645645
lp := c.Path
646646
if runtime.GOOS == "windows" {
647-
if lp == "" {
647+
if c.cacheLookExtensions == "" {
648648
// If c.Path is relative, we had to wait until now
649649
// to resolve it in case c.Dir was changed.
650650
// (If it is absolute, we already resolved its extension in Command
@@ -665,7 +665,7 @@ func (c *Cmd) Start() error {
665665
if err != nil {
666666
return err
667667
}
668-
} else if c.cacheLookExtensions != "" {
668+
} else {
669669
lp = c.cacheLookExtensions
670670
}
671671
}

0 commit comments

Comments
 (0)