Commit b3f224b2 authored by David du Colombier's avatar David du Colombier

runtime: handle empty environment variables on Plan 9

LGTM=bradfitz, rsc
R=rsc, bradfitz
CC=golang-codereviews
https://golang.org/cl/137920044
parent 3306d119
......@@ -31,6 +31,10 @@ func gogetenv(key string) string {
return ""
}
n := seek(fd, 0, 2) - 1
if n <= 0 {
close(fd)
return ""
}
p := make([]byte, n)
......
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