mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-09 23:30:35 -06:00
Fix crash on Continuous dashboard - related to last commit fixing issue #10060. Do not call ShouldCreateNewTag if command is NULL...
This commit is contained in:
@@ -477,11 +477,17 @@ int cmCTest::Initialize(const char* binary_dir, cmCTestStartCommand* command)
|
||||
|
||||
// Create new "TAG" file or read existing one:
|
||||
//
|
||||
bool createNewTag = true;
|
||||
if (command)
|
||||
{
|
||||
createNewTag = command->ShouldCreateNewTag();
|
||||
}
|
||||
|
||||
std::string tagfile = testingDir + "/TAG";
|
||||
std::ifstream tfin(tagfile.c_str());
|
||||
std::string tag;
|
||||
|
||||
if (command->ShouldCreateNewTag())
|
||||
if (createNewTag)
|
||||
{
|
||||
time_t tctime = time(0);
|
||||
if ( this->TomorrowTag )
|
||||
|
||||
Reference in New Issue
Block a user