diff --git a/src/environment/windows.go b/src/environment/windows.go index 4ffa6b38..7e32297c 100644 --- a/src/environment/windows.go +++ b/src/environment/windows.go @@ -55,6 +55,10 @@ func (env *ShellEnvironment) Root() bool { } func (env *ShellEnvironment) Home() string { + env.lock.Lock() + defer func() { + env.lock.Unlock() + }() home := os.Getenv("HOME") defer func() { env.log(Debug, "Home", home)