googletest: fix -Werror=maybe-uninitialized failure.

This commit is contained in:
Catherine 2025-01-15 09:43:54 +00:00 committed by myrtle
parent 574f504787
commit c48157aa4b

View File

@ -1004,7 +1004,7 @@ void StackLowerThanAddress(const void* ptr, bool* result) {
// Make sure AddressSanitizer does not tamper with the stack here.
GTEST_ATTRIBUTE_NO_SANITIZE_ADDRESS_
bool StackGrowsDown() {
int dummy;
int dummy = 0;
bool result;
StackLowerThanAddress(&dummy, &result);
return result;