Skip to content

Commit 2c3c270

Browse files
authored
Fix: Fix unititalized variables.
1 parent c4caa15 commit 2c3c270

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

contrib/googletest-1.10.x/googletest/src/gtest-death-test.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1296,8 +1296,8 @@ static void StackLowerThanAddress(const void* ptr, bool* result) {
12961296
GTEST_ATTRIBUTE_NO_SANITIZE_ADDRESS_
12971297
GTEST_ATTRIBUTE_NO_SANITIZE_HWADDRESS_
12981298
static bool StackGrowsDown() {
1299-
int dummy;
1300-
bool result;
1299+
int dummy=0;
1300+
bool result=true;
13011301
StackLowerThanAddress(&dummy, &result);
13021302
return result;
13031303
}

0 commit comments

Comments
 (0)