From b8581255abd288fa590fe18d7424aeb82d945675 Mon Sep 17 00:00:00 2001 From: bdemsky Date: Mon, 25 Oct 2004 00:04:42 +0000 Subject: [PATCH] Want to zero next "next" pointer, not the one we just wrote. --- Repair/RepairCompiler/MCC/Runtime/SimpleHash.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Repair/RepairCompiler/MCC/Runtime/SimpleHash.cc b/Repair/RepairCompiler/MCC/Runtime/SimpleHash.cc index 67dc413..07f8a12 100755 --- a/Repair/RepairCompiler/MCC/Runtime/SimpleHash.cc +++ b/Repair/RepairCompiler/MCC/Runtime/SimpleHash.cc @@ -132,7 +132,7 @@ void WorkList::add(int id,int type, int lvalue, int rvalue) { if (headoffset==WLISTSIZE) { if (head->next==0) { head->next=(struct ListNode *)malloc(sizeof(struct ListNode)); - head->next=0; + head->next->next=0; } headoffset=0; head=head->next; -- 2.34.1