initialize a variable

This commit is contained in:
Sau Chow 2024-06-28 12:21:42 +00:00
parent c5e5651f02
commit 19c1f70d7f

View File

@ -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;