]> Cypherpunks repositories - gostls13.git/commit
runtime/cgo: fix unsetenv wrapper
authorKeith Randall <khr@golang.org>
Thu, 23 Jan 2020 04:48:21 +0000 (20:48 -0800)
committerKeith Randall <khr@golang.org>
Mon, 24 Feb 2020 21:32:48 +0000 (21:32 +0000)
commit4f074b58d2016eee2b63ffb668f6ed28156ecf62
treeee8cdac0eeeb08375c07ef70bd27f8f0cc1af7c7
parent28c501b7b3405cf2afa7b9a440c9fc835d5276a0
runtime/cgo: fix unsetenv wrapper

The wrapper takes a pointer to the argument, not the argument itself.

Fixes #36705

Change-Id: I566d4457d00bf5b84e4a8315a26516975f0d7e10
Reviewed-on: https://go-review.googlesource.com/c/go/+/215942
Run-TryBot: Keith Randall <khr@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/runtime/cgo/gcc_setenv.c
test/fixedbugs/issue36705.go [new file with mode: 0644]