From: Robert Griesemer Date: Mon, 18 May 2009 23:48:38 +0000 (-0700) Subject: fix typo X-Git-Tag: weekly.2009-11-06~1609 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=500f6b8e8450c5b7e685165ca146b37c2e0a5961;p=gostls13.git fix typo TBR=rsc OCL=29010 CL=29010 --- diff --git a/usr/gri/pretty/godoc.go b/usr/gri/pretty/godoc.go index 9590d6a42d..3c6c84cf26 100644 --- a/usr/gri/pretty/godoc.go +++ b/usr/gri/pretty/godoc.go @@ -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});