ENH: fix depend segfault

This commit is contained in:
Bill Hoffman 2001-02-14 12:26:49 -05:00
parent 21b18581bd
commit 0adb5237bd
1 changed files with 4 additions and 0 deletions

View File

@ -241,6 +241,10 @@ void cmDependInformation::RemoveDuplicateIndices()
// add the depend information from info to the m_Indices varible of this class. // add the depend information from info to the m_Indices varible of this class.
void cmDependInformation::MergeInfo(cmDependInformation* info) void cmDependInformation::MergeInfo(cmDependInformation* info)
{ {
if(this == info)
{
return;
}
std::vector<int>::iterator i = info->m_Indices.begin(); std::vector<int>::iterator i = info->m_Indices.begin();
for(; i!= info->m_Indices.end(); ++i) for(; i!= info->m_Indices.end(); ++i)
{ {