aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/mpagealloc.go
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2025-05-28 11:26:17 +0200
committerGopher Robot <gobot@golang.org>2025-07-24 09:06:11 -0700
commit8587ba272ede9b6607ec06822e743db71f3ba563 (patch)
tree9fabcb708488590e3d1341616ebdbd8c0b1f3281 /src/runtime/mpagealloc.go
parentcae45167b79ec3838f0cabb19394bcd99810f79a (diff)
downloadgo-8587ba272ede9b6607ec06822e743db71f3ba563.tar.xz
cmd/cgo: compare malloc return value to NULL instead of literal 0
Follow the pattern used in the other _cgoPREFIX_Cfunc* functions. This also avoids a -Wzero-as-null-pointer-constant warning when compiling with g++. Change-Id: I95ac8842df048105f4c738f3603136d9cfa2dfdc Reviewed-on: https://go-review.googlesource.com/c/go/+/664916 Auto-Submit: Keith Randall <khr@golang.org> Auto-Submit: Tobias Klauser <tobias.klauser@gmail.com> Reviewed-by: Keith Randall <khr@google.com> Reviewed-by: David Chase <drchase@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Keith Randall <khr@golang.org>
Diffstat (limited to 'src/runtime/mpagealloc.go')
0 files changed, 0 insertions, 0 deletions