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