diff options
author | David Cole <david.cole@kitware.com> | 2009-12-29 20:48:14 (GMT) |
---|---|---|
committer | David Cole <david.cole@kitware.com> | 2009-12-29 20:48:14 (GMT) |
commit | 47bd8637abbfe4d4246cdb3316ef96da98ec4b08 (patch) | |
tree | b50c95ee1e1013f887ec776ad405de4127eb1e92 /Source/cmCTest.cxx | |
parent | aad15c3abfbffc216bbbab654f6eb19f312c1e56 (diff) | |
download | CMake-47bd8637abbfe4d4246cdb3316ef96da98ec4b08.zip CMake-47bd8637abbfe4d4246cdb3316ef96da98ec4b08.tar.gz CMake-47bd8637abbfe4d4246cdb3316ef96da98ec4b08.tar.bz2 |
Fix crash on Continuous dashboard - related to last commit fixing issue #10060. Do not call ShouldCreateNewTag if command is NULL...
Diffstat (limited to 'Source/cmCTest.cxx')
-rw-r--r-- | Source/cmCTest.cxx | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/Source/cmCTest.cxx b/Source/cmCTest.cxx index 31f1321..bcbe18e 100644 --- a/Source/cmCTest.cxx +++ b/Source/cmCTest.cxx @@ -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 ) |