From: bdemsky Date: Mon, 25 Oct 2004 00:04:42 +0000 (+0000) Subject: Want to zero next "next" pointer, not the one we just wrote. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=b8581255abd288fa590fe18d7424aeb82d945675;p=repair.git Want to zero next "next" pointer, not the one we just wrote. --- 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;