|
|
@@ -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.
|