From 0adb5237bdcf4ff7d782374de5cbfe3dc5463fab Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Wed, 14 Feb 2001 12:26:49 -0500 Subject: ENH: fix depend segfault --- Source/cmMakeDepend.cxx | 4 ++++ 1 file changed, 4 insertions(+) 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::iterator i = info->m_Indices.begin(); for(; i!= info->m_Indices.end(); ++i) { -- cgit v0.12