]> Cypherpunks repositories - gostls13.git/commitdiff
fix typo
authorRobert Griesemer <gri@golang.org>
Mon, 18 May 2009 23:48:38 +0000 (16:48 -0700)
committerRobert Griesemer <gri@golang.org>
Mon, 18 May 2009 23:48:38 +0000 (16:48 -0700)
TBR=rsc
OCL=29010
CL=29010

usr/gri/pretty/godoc.go

index 9590d6a42d6c833027a706bc1c9d0a9d934185a3..3c6c84cf2664466a848771709902515524716131 100644 (file)
@@ -587,7 +587,7 @@ func loggingHandler(h http.Handler) http.Handler {
 
 func restartGodoc(c *http.Conn, r *http.Request) {
        binary := os.Args[0];
-       if len(binary) > 0 || binary[0] != '/' {
+       if len(binary) > 0 && binary[0] != '/' {
                binary = pathutil.Join(launchdir, binary);
        }
        pid, err := os.ForkExec(binary, os.Args, os.Environ(), "", []*os.File{os.Stdin, os.Stdout, os.Stderr});