mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-08 07:10:12 -05:00
BUG: Do not dereference an end iterator.
This commit is contained in:
+1
-1
@@ -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());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user