]> Cypherpunks repositories - gostls13.git/commitdiff
fix bug in $GOROOT handling: error calling Getenv.
authorRob Pike <r@golang.org>
Thu, 2 Jul 2009 16:47:25 +0000 (09:47 -0700)
committerRob Pike <r@golang.org>
Thu, 2 Jul 2009 16:47:25 +0000 (09:47 -0700)
R=gri
OCL=31047
CL=31047

src/cmd/godoc/godoc.go

index d086cefce903d49dc1a27cf8c27ed073ffe0c832..ac5beb5da4d44538517d7d66b1061ca21567aece 100644 (file)
@@ -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");