From 19c1f70d7f1e2fba0f42e82f682499ad6db181c9 Mon Sep 17 00:00:00 2001 From: Sau Chow Date: Fri, 28 Jun 2024 12:21:42 +0000 Subject: [PATCH] initialize a variable --- .../google/googletest/googletest/src/gtest-death-test.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vendor/github.com/google/googletest/googletest/src/gtest-death-test.cc b/vendor/github.com/google/googletest/googletest/src/gtest-death-test.cc index da09a1c..8e37cc0 100644 --- a/vendor/github.com/google/googletest/googletest/src/gtest-death-test.cc +++ b/vendor/github.com/google/googletest/googletest/src/gtest-death-test.cc @@ -1296,7 +1296,7 @@ static void StackLowerThanAddress(const void* ptr, bool* result) { GTEST_ATTRIBUTE_NO_SANITIZE_ADDRESS_ GTEST_ATTRIBUTE_NO_SANITIZE_HWADDRESS_ static bool StackGrowsDown() { - int dummy; + int dummy=0; bool result; StackLowerThanAddress(&dummy, &result); return result;