BUG: Do not dereference an end iterator.
This commit is contained in:
parent
70b4e1051e
commit
0df3c162fb
|
@ -1070,7 +1070,7 @@ int cmCTest::RunTest(std::vector<const char*> argv,
|
||||||
}
|
}
|
||||||
|
|
||||||
cmsysProcess_WaitForExit(cp, 0);
|
cmsysProcess_WaitForExit(cp, 0);
|
||||||
if(output)
|
if(output && tempOutput.begin() != tempOutput.end())
|
||||||
{
|
{
|
||||||
output->append(&*tempOutput.begin(), tempOutput.size());
|
output->append(&*tempOutput.begin(), tempOutput.size());
|
||||||
}
|
}
|
||||||
|
|
|
@ -507,7 +507,7 @@ bool cmSystemTools::RunSingleCommand(
|
||||||
}
|
}
|
||||||
|
|
||||||
cmsysProcess_WaitForExit(cp, 0);
|
cmsysProcess_WaitForExit(cp, 0);
|
||||||
if ( output )
|
if ( output && tempOutput.begin() != tempOutput.end())
|
||||||
{
|
{
|
||||||
output->append(&*tempOutput.begin(), tempOutput.size());
|
output->append(&*tempOutput.begin(), tempOutput.size());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue