Parcourir la source

Fix uninitialized variable in GoogleTest framework

Patrick-Christopher Mattulat il y a 2 ans
Parent
commit
98af4a5c57
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      test/lib/googletest-1.8.1/googletest/src/gtest-death-test.cc

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