diff --git a/Source/CTest/cmCTestTestHandler.cxx b/Source/CTest/cmCTestTestHandler.cxx index e73b70f67..f5643ac1c 100644 --- a/Source/CTest/cmCTestTestHandler.cxx +++ b/Source/CTest/cmCTestTestHandler.cxx @@ -1122,7 +1122,7 @@ void cmCTestTestHandler::LoadTestList() return; } bool ok = true; - int numTestsToRun; + int numTestsToRun = 0; ok = ok && this->GetValue("TotalNumberOfTests:", this->TotalNumberOfTests, fin); ok = ok && this->GetValue("NumberOfTestsToRun:", numTestsToRun, fin);