Guard against creating duplicate nodes.
r1467 | ffr | 2007-02-12 13:36:11 +1100 (Mon, 12 Feb 2007) | 2 lines
This commit is contained in:
committed by
Douglas Clowes
parent
5af27359dd
commit
96b066502b
@@ -583,6 +583,7 @@ void AddHipadabaChild(pHdb parent, pHdb child, void *callData){
|
||||
* step to end of child chain
|
||||
*/
|
||||
while(current != NULL){
|
||||
assert(strcmp(current->name,child->name)!=0);
|
||||
prev = current;
|
||||
current = current->next;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user