Commit 519a70da authored by Rob Pike's avatar Rob Pike

fix bug in $GOROOT handling: error calling Getenv.

R=gri
OCL=31047
CL=31047
parent 22b93dfb
......@@ -99,7 +99,7 @@ var (
func init() {
goroot = os.Getenv("GOROOT");
if goroot != "" {
if goroot == "" {
goroot = "/home/r/go-release/go";
}
flag.StringVar(&goroot, "goroot", goroot, "Go root directory");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment