BUG: Do not dereference an end iterator.

This commit is contained in:
Brad King
2005-11-17 15:44:43 -05:00
parent 70b4e1051e
commit 0df3c162fb
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1070,7 +1070,7 @@ int cmCTest::RunTest(std::vector<const char*> argv,
}
cmsysProcess_WaitForExit(cp, 0);
if(output)
if(output && tempOutput.begin() != tempOutput.end())
{
output->append(&*tempOutput.begin(), tempOutput.size());
}