summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2001-02-14 17:26:49 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2001-02-14 17:26:49 (GMT)
commit0adb5237bdcf4ff7d782374de5cbfe3dc5463fab (patch)
tree778023795de6a0151add6becab3197f6c3fb32cd /Source
parent21b18581bd7da49c80d6806b0f3e83ea0af2b076 (diff)
downloadCMake-0adb5237bdcf4ff7d782374de5cbfe3dc5463fab.zip
CMake-0adb5237bdcf4ff7d782374de5cbfe3dc5463fab.tar.gz
CMake-0adb5237bdcf4ff7d782374de5cbfe3dc5463fab.tar.bz2
ENH: fix depend segfault
Diffstat (limited to 'Source')
-rw-r--r--Source/cmMakeDepend.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/cmMakeDepend.cxx b/Source/cmMakeDepend.cxx
index d2f7069..3150d8c 100644
--- a/Source/cmMakeDepend.cxx
+++ b/Source/cmMakeDepend.cxx
@@ -241,6 +241,10 @@ void cmDependInformation::RemoveDuplicateIndices()
// add the depend information from info to the m_Indices varible of this class.
void cmDependInformation::MergeInfo(cmDependInformation* info)
{
+ if(this == info)
+ {
+ return;
+ }
std::vector<int>::iterator i = info->m_Indices.begin();
for(; i!= info->m_Indices.end(); ++i)
{