Răsfoiți Sursa

Fix uninitialized variable in GoogleTest framework

Patrick-Christopher Mattulat 2 ani în urmă
părinte
comite
98af4a5c57

+ 1 - 1
test/lib/googletest-1.8.1/googletest/src/gtest-death-test.cc

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