diff options
author | Ian Lance Taylor <iant@golang.org> | 2021-03-11 15:09:47 -0800 |
---|---|---|
committer | Ian Lance Taylor <iant@golang.org> | 2021-03-13 03:16:55 +0000 |
commit | 73eb27bd3bdf727347a5e4d7d369d92f712f5ab5 (patch) | |
tree | 9e00a37efd2a02cc96bac9ddadae0b2b8d6da028 | |
parent | 7588ef0d9020c8e628adcd0a0046231252f0d90d (diff) | |
download | go-git-73eb27bd3bdf727347a5e4d7d369d92f712f5ab5.tar.gz |
misc/cgo/testcarchive: don't use == for string equality in C code
For https://gcc.gnu.org/PR99553
Change-Id: I29a7fbfd89963d4139bc19af99330d70567938ea
Reviewed-on: https://go-review.googlesource.com/c/go/+/300993
Trust: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Emmanuel Odeke <emmanuel@orijtech.com>
-rw-r--r-- | misc/cgo/testcarchive/testdata/main_unix.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/misc/cgo/testcarchive/testdata/main_unix.c b/misc/cgo/testcarchive/testdata/main_unix.c index b23ac1c242..bd00f9d233 100644 --- a/misc/cgo/testcarchive/testdata/main_unix.c +++ b/misc/cgo/testcarchive/testdata/main_unix.c @@ -36,7 +36,7 @@ int install_handler() { return 2; } // gccgo does not set SA_ONSTACK for SIGSEGV. - if (getenv("GCCGO") == "" && (osa.sa_flags&SA_ONSTACK) == 0) { + if (getenv("GCCGO") == NULL && (osa.sa_flags&SA_ONSTACK) == 0) { fprintf(stderr, "Go runtime did not install signal handler\n"); return 2; } |