summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
Diffstat (limited to 'Source')
-rw-r--r--Source/CTest/cmCTestCoverageHandler.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/CTest/cmCTestCoverageHandler.cxx b/Source/CTest/cmCTestCoverageHandler.cxx
index b0dee01..23a6738 100644
--- a/Source/CTest/cmCTestCoverageHandler.cxx
+++ b/Source/CTest/cmCTestCoverageHandler.cxx
@@ -717,7 +717,7 @@ int cmCTestCoverageHandler::ProcessHandler()
std::string line;
for ( cc= 0; cc < fcov.size(); cc ++ )
{
- if ( !cmSystemTools::GetLineFromStream(ifs, line) )
+ if ( !cmSystemTools::GetLineFromStream(ifs, line) && cc != fcov.size() -1 )
{
cmOStringStream ostr;
ostr << "Problem reading source file: " << fullFileName.c_str()