]> Cypherpunks repositories - gostls13.git/commit
syscall: Clearenv now unsets env vars on Windows
authorJesse Szwedko <jesse.szwedko@gmail.com>
Sun, 13 Nov 2016 21:29:19 +0000 (13:29 -0800)
committerAlex Brainman <alex.brainman@gmail.com>
Mon, 14 Nov 2016 00:04:03 +0000 (00:04 +0000)
commit5f74ce394f02714a88dd375f54e8709ce58d1805
treeea0a007f33a0456759f03cd9e6b4dfcda02154a4
parent4a381e3ee3ad6104fc1e1bc255f29d6bf47d7969
syscall: Clearenv now unsets env vars on Windows

Previously, `os.Clearenv()` (by way of `syscall.Clearenv`) would simply
set all environment variables' values to `""` rather than actually
unsetting them causing subsequent `os.LookupEnv` calls to return that
they were still set.

Fixes #17902

Change-Id: I54081b4b98665e9a39f55ea7582c8d40bb8a2a22
Reviewed-on: https://go-review.googlesource.com/33168
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Alex Brainman <alex.brainman@gmail.com>
src/os/env_test.go
src/syscall/env_windows.go