diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2009-08-11 20:25:56 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2009-08-11 20:25:56 (GMT) |
commit | a86df0251fe226664e4cb70cebe7bb272aa7fd81 (patch) | |
tree | 74b495d6d507322a99642c6c11b256ccb9b5d201 | |
parent | 875c478b64de0e0986394e2d642254f7943ec588 (diff) | |
download | CMake-a86df0251fe226664e4cb70cebe7bb272aa7fd81.zip CMake-a86df0251fe226664e4cb70cebe7bb272aa7fd81.tar.gz CMake-a86df0251fe226664e4cb70cebe7bb272aa7fd81.tar.bz2 |
Fix failing test on release build for VS 10 cmSystemTools::GetLineFromStream crashes if the stream is not open in that case.
-rw-r--r-- | Source/CTest/cmCTestCVS.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/CTest/cmCTestCVS.cxx b/Source/CTest/cmCTestCVS.cxx index 18ec0ec..d58240a 100644 --- a/Source/CTest/cmCTestCVS.cxx +++ b/Source/CTest/cmCTestCVS.cxx @@ -237,7 +237,7 @@ std::string cmCTestCVS::ComputeBranchFlag(std::string const& dir) // Lookup the branch in the tag file, if any. std::string tagLine; std::ifstream tagStream(tagFile.c_str()); - if(cmSystemTools::GetLineFromStream(tagStream, tagLine) && + if(tagStream && cmSystemTools::GetLineFromStream(tagStream, tagLine) && tagLine.size() > 1 && tagLine[0] == 'T') { // Use the branch specified in the tag file. |